コード例 #1
0
        public static void CreateUIWorld(MenuCommand menuCommand)
        {
            GameObject gameObject = GFUICreateControls.CreatUIWorld(new DRes());

            placeUIElementRoot(gameObject, menuCommand);

            RectTransform rect = gameObject.GetComponent <RectTransform>();

            rect.anchoredPosition = Vector2.zero;
            rect.sizeDelta        = Vector2.zero;
        }
コード例 #2
0
        public static void CreateUIView(MenuCommand menuCommand)
        {
            GameObject gameObject = GFUICreateControls.CreatUIView(new DRes());

            _placeUIElementRoot(gameObject, menuCommand);

            RectTransform rect = gameObject.GetComponent <RectTransform>();

            rect.anchoredPosition = Vector2.zero;
            rect.sizeDelta        = Vector2.zero;
            rect.localPosition    = new Vector3(0, 0, 1000);

            EditorTools.RenameCurHierachyObj();
        }