Exemple #1
0
 ///Shows the Generic Menu as a browser with CompleteContextMenu.
 public static void ShowAsBrowser(this GenericMenu menu, string title, System.Type keyType = null)
 {
     if (menu != null)
     {
         GenericMenuBrowser.Show(menu, Event.current.mousePosition, title, keyType);
     }
 }
Exemple #2
0
 ///Shows the Generic Menu as a browser with CompleteContextMenu.
 public static void ShowAsBrowser(this GenericMenu menu, Vector2 pos, string title, System.Type keyType = null)
 {
     if (menu != null)
     {
         GenericMenuBrowser.Show(menu, pos, title, keyType);
     }
 }