PlaceUIElementRoot() private static method

private static PlaceUIElementRoot ( GameObject element, MenuCommand menuCommand ) : void
element UnityEngine.GameObject
menuCommand MenuCommand
return void
Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 public static void AddText(MenuCommand menuCommand)
 {
     MenuOptions.PlaceUIElementRoot(DefaultControls.CreateText(MenuOptions.GetStandardResources()), menuCommand);
 }
Ejemplo n.º 3
0
        static public void AddLImageForTP(MenuCommand menuCommand)
        {
            GameObject go = DefaultControls.CreateLImageForTP();

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

            MenuOptions.PlaceUIElementRoot(element, menuCommand);
        }