diff --git a/Prowl.Editor/EditorWindows/AssetsWindow.cs b/Prowl.Editor/EditorWindows/AssetsWindow.cs index 1758fb24b..b1183413b 100644 --- a/Prowl.Editor/EditorWindows/AssetsWindow.cs +++ b/Prowl.Editor/EditorWindows/AssetsWindow.cs @@ -4,6 +4,7 @@ using Prowl.Icons; using Prowl.Runtime; using Prowl.Runtime.SceneManagement; +using static Assimp.Metadata; namespace Prowl.Editor.EditorWindows; @@ -93,7 +94,7 @@ protected override void Draw() EditorGui.Notify("A file with the same name already exists."); else { - EditorGui.Notify("Renaming assets is not yet implemented."); + AssetDatabase.Rename(file, newName); } RenamingEntry = null; } @@ -173,7 +174,7 @@ private void DrawDirectory(DirectoryInfo directory) EditorGui.Notify("A directory with the same name already exists."); else { - EditorGui.Notify("Renaming assets is not yet implemented."); + subDirectory.MoveTo(newPath); } RenamingEntry = null; } @@ -224,7 +225,7 @@ private void DrawDirectory(DirectoryInfo directory) EditorGui.Notify("A file with the same name already exists."); else { - EditorGui.Notify("Renaming assets is not yet implemented."); + AssetDatabase.Rename(file, newName); } RenamingEntry = null; }