Skip to content

Commit f571af2

Browse files
committed
Always re-initialize in pre-spawn
1 parent 292d1d2 commit f571af2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,6 +2631,7 @@ internal static void CheckOrphanChildren()
26312631
internal void InvokeBehaviourNetworkPreSpawn()
26322632
{
26332633
var networkManager = NetworkManager;
2634+
InitializeChildNetworkBehaviours();
26342635
foreach (var childBehaviour in ChildNetworkBehaviours.Values)
26352636
{
26362637
childBehaviour.NetworkPreSpawn(ref networkManager, this);

0 commit comments

Comments
 (0)