GetHelpURL() статический публичный Метод

Get the URL pointing to the documentation for the specified component.
static public GetHelpURL ( Type type ) : string
type Type
Результат string
Пример #1
0
    /// <summary>
    /// Add help options based on the components present on the specified game object.
    /// </summary>

    static public void AddHelp(GameObject go, bool addSeparator)
    {
        MonoBehaviour[] comps = Selection.activeGameObject.GetComponents <MonoBehaviour>();

        bool addedSomething = false;

        for (int i = 0; i < comps.Length; ++i)
        {
            System.Type type = comps[i].GetType();
            string      url  = NGUIHelp.GetHelpURL(type);

            if (url != null)
            {
                if (addSeparator)
                {
                    addSeparator = false;
                    AddSeparator("");
                }

                AddItem("Help/" + type, false, delegate(object obj) { Application.OpenURL(url); }, null);
                addedSomething = true;
            }
        }

        if (addedSomething)
        {
            AddSeparator("Help/");
        }
        AddItem("Help/All Topics", false, delegate(object obj) { NGUIHelp.Show(); }, null);
    }