static public GetHelpURL ( Type type ) : string | ||
type | Type | |
Résultat | string |
/// <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); }