Prevent performing default spawn behavior when spawning from a prefab.
This commit is contained in:
@@ -71,6 +71,11 @@ namespace FlaxEditor.SceneGraph.Actors
|
||||
{
|
||||
base.PostSpawn();
|
||||
|
||||
if (Actor.HasPrefabLink)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
((BoxCollider)Actor).AutoResize();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user