Prevent performing default spawn behavior when spawning from a prefab.

This commit is contained in:
Menotdan
2023-12-17 12:02:56 -05:00
parent 9ea5ed79f8
commit ea744ab4ac
5 changed files with 27 additions and 6 deletions

View File

@@ -71,6 +71,11 @@ namespace FlaxEditor.SceneGraph.Actors
{
base.PostSpawn();
if (Actor.HasPrefabLink)
{
return;
}
((BoxCollider)Actor).AutoResize();
}
}