Merge branch 'prefab-name' of https://github.com/Tryibion/FlaxEngine into Tryibion-prefab-name

This commit is contained in:
Wojtek Figat
2023-04-19 10:52:25 +02:00

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)