PlaceUIElementRoot() 개인적인 정적인 메소드

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

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

            MenuOptions.PlaceUIElementRoot(element, menuCommand);
        }