Take parent actor name as initial prefab name.

This commit is contained in:
Chandler Cox
2023-04-17 13:34:25 -05:00
parent 0842a95dd6
commit cdc8e4adb8

View File

@@ -90,7 +90,7 @@ namespace FlaxEditor.Modules
PrefabCreating?.Invoke(actor);
var proxy = Editor.ContentDatabase.GetProxy<Prefab>();
Editor.Windows.ContentWin.NewItem(proxy, actor, OnPrefabCreated);
Editor.Windows.ContentWin.NewItem(proxy, actor, OnPrefabCreated, actor.Name);
}
private void OnPrefabCreated(ContentItem contentItem)