PlaceUIElementRoot() private static method

private static PlaceUIElementRoot ( GameObject element, MenuCommand menuCommand ) : void
element UnityEngine.GameObject
menuCommand MenuCommand
return void
Beispiel #1
0
        public static void AddPanel(MenuCommand menuCommand)
        {
            GameObject panel = DefaultControls.CreatePanel(MenuOptions.GetStandardResources());

            MenuOptions.PlaceUIElementRoot(panel, menuCommand);
            RectTransform component = panel.GetComponent <RectTransform>();

            component.anchoredPosition = Vector2.zero;
            component.sizeDelta        = Vector2.zero;
        }
Beispiel #2
0
 public static void AddText(MenuCommand menuCommand)
 {
     MenuOptions.PlaceUIElementRoot(DefaultControls.CreateText(MenuOptions.GetStandardResources()), menuCommand);
 }
Beispiel #3
0
        static public void AddLImageForTP(MenuCommand menuCommand)
        {
            GameObject go = DefaultControls.CreateLImageForTP();

            MenuOptions.PlaceUIElementRoot(go, menuCommand);
        }
        public static void AddScrollView(MenuCommand menuCommand)
        {
            GameObject element = DefaultControls.CreateScrollView(MenuOptions.GetStandardResources());

            MenuOptions.PlaceUIElementRoot(element, menuCommand);
        }