Cleanup 1

This commit is contained in:
W2.Wizard
2021-02-21 10:05:47 +01:00
parent 115d6e46a8
commit 52bc268ee7
12 changed files with 126 additions and 67 deletions

View File

@@ -78,8 +78,10 @@ namespace FlaxEditor.Content
if (actor == null)
{
// Create default prefab root object
actor = new EmptyActor();
actor.Name = "Root";
actor = new EmptyActor
{
Name = "Root"
};
// Cleanup it after usage
Object.Destroy(actor, 20.0f);