Beispiel #1
0
        void drawTypeDrawerFolder()
        {
            var path = EditorLayout.ObjectFieldOpenFolderPanel(
                "Type Drawers",
                _visualDebuggingConfig.typeDrawerFolderPath,
                _visualDebuggingConfig.typeDrawerFolderPath
                );

            if (!string.IsNullOrEmpty(path))
            {
                _visualDebuggingConfig.typeDrawerFolderPath = path;
            }
        }
Beispiel #2
0
        void drawDefaultInstanceCreator()
        {
            var path = EditorLayout.ObjectFieldOpenFolderPanel(
                "Default Instance Creators",
                _visualDebuggingConfig.defaultInstanceCreatorFolderPath,
                _visualDebuggingConfig.defaultInstanceCreatorFolderPath
                );

            if (!string.IsNullOrEmpty(path))
            {
                _visualDebuggingConfig.defaultInstanceCreatorFolderPath = path;
            }
        }
        void drawTypeDrawerFolder()
        {
            EditorGUILayout.BeginHorizontal();
            {
                var path = EditorLayout.ObjectFieldOpenFolderPanel(
                    "Type Drawers",
                    _visualDebuggingConfig.typeDrawerFolderPath,
                    _visualDebuggingConfig.typeDrawerFolderPath
                    );
                if (!string.IsNullOrEmpty(path))
                {
                    _visualDebuggingConfig.typeDrawerFolderPath = path;
                }

                if (EditorLayout.MiniButton("New"))
                {
                    EntityDrawer.GenerateITypeDrawer("MyType");
                }
            }
            EditorGUILayout.EndHorizontal();
        }