Exemple #1
0
        public override void OnInspectorGUI()
        {
            UIMan uiManager = (UIMan)target;

            uiManager.uiRoot     = EditorGUILayout.ObjectField(uiRoot, uiManager.uiRoot, typeof(Transform), true) as Transform;
            uiManager.screenRoot = EditorGUILayout.ObjectField(screenRoot, uiManager.screenRoot, typeof(Transform), true) as Transform;
            uiManager.dialogRoot = EditorGUILayout.ObjectField(dialogRoot, uiManager.dialogRoot, typeof(Transform), true) as Transform;
            uiManager.background = EditorGUILayout.ObjectField(backgroundImg, uiManager.background, typeof(Image), true) as Image;
            uiManager.cover      = EditorGUILayout.ObjectField(coverTrans, uiManager.cover, typeof(RectTransform), true) as RectTransform;
        }
Exemple #2
0
        public override void OnInspectorGUI()
        {
            UIMan uiManager = (UIMan)target;

            GUILayout.BeginHorizontal("Box");
            LabelHelper.HeaderLabel("UIMan Root");
            GUILayout.EndHorizontal();

            GUILayout.BeginVertical("Box");
            uiManager.uiRoot     = EditorGUILayout.ObjectField(uiRoot, uiManager.uiRoot, typeof(Transform), true) as Transform;
            uiManager.screenRoot = EditorGUILayout.ObjectField(screenRoot, uiManager.screenRoot, typeof(Transform), true) as Transform;
            uiManager.dialogRoot = EditorGUILayout.ObjectField(dialogRoot, uiManager.dialogRoot, typeof(Transform), true) as Transform;
            uiManager.background = EditorGUILayout.ObjectField(backgroundImg, uiManager.background, typeof(Image), true) as Image;
            uiManager.cover      = EditorGUILayout.ObjectField(coverTrans, uiManager.cover, typeof(RectTransform), true) as RectTransform;
            GUILayout.EndHorizontal();
        }