private CreateEventSystem ( MenuCommand menuCommand ) : void | ||
menuCommand | MenuCommand | |
return | void |
public static GameObject CreateNewUI() { GameObject gameObject = new GameObject("Canvas"); gameObject.layer = LayerMask.NameToLayer("UI"); gameObject.AddComponent <Canvas>().renderMode = UnityEngine.RenderMode.ScreenSpaceOverlay; gameObject.AddComponent <CanvasScaler>(); gameObject.AddComponent <GraphicRaycaster>(); Undo.RegisterCreatedObjectUndo((Object)gameObject, "Create " + gameObject.name); MenuOptions.CreateEventSystem(false); return(gameObject); }
private static void CreateEventSystem(bool select) { MenuOptions.CreateEventSystem(select, (GameObject)null); }
public static void CreateEventSystem(MenuCommand menuCommand) { MenuOptions.CreateEventSystem(true, menuCommand.context as GameObject); }