mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Added option to create Materials in Asset Browser
This commit is contained in:
@@ -151,6 +151,14 @@ namespace GlitchyEditor
|
||||
SaveScene(newScene, path);
|
||||
}
|
||||
}));
|
||||
|
||||
Editor.Instance.ContentBrowserWindow.RegisterAssetCreator(new AssetCreator("Material", "New Material.mat", new (path) =>
|
||||
{
|
||||
using (Material newMaterial = new Material())
|
||||
{
|
||||
_contentManager.SaveAssetToFile(newMaterial, path);
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
private void InitGraphics()
|
||||
|
||||
Reference in New Issue
Block a user