Empty implementation of the upcoming HelpURL of Unity 5.1. This one is only for compatibility of attributes.
http://feedback.unity3d.com/suggestions/override-component-documentation-slash-help-link
상속: Attribute
예제 #1
0
                public string _getURL(HelpURL url)
                {
                    switch (url)
                    {
                    case HelpURL.programs:
                        return(RunPrograms);

                    case HelpURL.tasks:
                        return(RunPrograms);

                    case HelpURL.settings:
                        return(Settings);

                    case HelpURL.lighting:
                        return(Lighting);

                    case HelpURL.cache:
                        return(Packaging);

                    case HelpURL.phantom:
                        return(Phantom);

                    case HelpURL.instances:
                        return(MultiInstance);

                    case HelpURL.h2lod:
                        return(H2LOD);

                    default:
                        return(General);
                    }
                }
예제 #2
0
                public string GetURL(HelpURL requestedURI)
                {
                    string url = _getURL(requestedURI);

                    if (String.IsNullOrWhiteSpace(url))
                    {
                        return(_getURL(HelpURL.main));
                    }
                    else
                    {
                        return(url);
                    }
                }
예제 #3
0
    private void DrawBackendHelpIfAvailable(string backend)
    {
        var backendType = Type.GetType(backend + ", Assembly-CSharp");

        object[] customAttributes = backendType.GetCustomAttributes(typeof(HelpURL), false);
        if (customAttributes.Length >= 1)
        {
            HelpURL helpUrl = (HelpURL)customAttributes[0];
            if (MadGUI.InfoFix("Need help?", "Open Documentation Page"))
            {
                Help.BrowseURL(helpUrl.url);
            }
        }
    }
예제 #4
0
 public void OpenURL(string toolkitName, HelpURL url)
 {
     Process.OpenURL(UrlBase + Tookits[toolkitName].GetURL(url));
 }