void drawTypeDrawerFolder() { var path = EditorLayout.ObjectFieldOpenFolderPanel( "Type Drawers", _visualDebuggingConfig.typeDrawerFolderPath, _visualDebuggingConfig.typeDrawerFolderPath ); if (!string.IsNullOrEmpty(path)) { _visualDebuggingConfig.typeDrawerFolderPath = path; } }
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(); }