Fix spawned prefab name after drag&drop into prefab window

#1865
This commit is contained in:
Wojtek Figat
2023-12-12 19:13:47 +01:00
parent b297b9f185
commit d26b9818d8

View File

@@ -368,7 +368,7 @@ namespace FlaxEditor.Windows.Assets
actor.Layer = parentActor.Layer;
// Rename actor to identify it easily
actor.Name = Utilities.Utils.IncrementNameNumber(actor.GetType().Name, x => parentActor.GetChild(x) == null);
actor.Name = Utilities.Utils.IncrementNameNumber(actor.Name, x => parentActor.GetChild(x) == null);
}
// Spawn it