Merge branch 'script-recycle' of https://github.com/Tryibion/FlaxEngine into Tryibion-script-recycle

This commit is contained in:
Wojtek Figat
2026-03-10 14:13:25 +01:00
4 changed files with 38 additions and 7 deletions

View File

@@ -754,6 +754,10 @@ namespace FlaxEditor.Modules
// Delete asset by using content pool
FlaxEngine.Content.DeleteAsset(path);
}
else if (item is ScriptItem)
{
FlaxEngine.Content.DeleteScript(path);
}
else if (deletedByUser)
{
// Delete file
@@ -901,7 +905,7 @@ namespace FlaxEditor.Modules
{
// Item doesn't exist anymore
Editor.Log(string.Format($"Content item \'{child.Path}\' has been removed"));
Delete(child, false);
Delete(child);
i--;
}
else if (canHaveAssets && child is AssetItem childAsset)