diff --git a/GlitchyEditor/src/EditorLayer.bf b/GlitchyEditor/src/EditorLayer.bf index c5e8c38..d2cb491 100644 --- a/GlitchyEditor/src/EditorLayer.bf +++ b/GlitchyEditor/src/EditorLayer.bf @@ -144,6 +144,14 @@ namespace GlitchyEditor private void RegisterAssetCreators() { + Editor.Instance.ContentBrowserWindow.RegisterAssetCreator(new AssetCreator("Folder", "New Folder", new (path) => + { + if (Directory.CreateDirectory(path) case .Err(let error)) + { + Log.ClientLogger.Error($"Directory \"{path}\" could not be created ({error})."); + } + })); + Editor.Instance.ContentBrowserWindow.RegisterAssetCreator(new AssetCreator("Scene", "New Scene.scene", new (path) => { using (Scene newScene = CreateNewScene())