CreateEventSystem() private method

private CreateEventSystem ( MenuCommand menuCommand ) : void
menuCommand MenuCommand
return void
Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private static void CreateEventSystem(bool select)
 {
     MenuOptions.CreateEventSystem(select, (GameObject)null);
 }
Esempio n. 3
0
 public static void CreateEventSystem(MenuCommand menuCommand)
 {
     MenuOptions.CreateEventSystem(true, menuCommand.context as GameObject);
 }