Skip to content

Commit d8b6cde

Browse files
update
Inverting logic (oops)
1 parent c695fd5 commit d8b6cde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private void CheckForInScenePlaced()
352352
SceneMigrationSynchronization = false;
353353

354354
// Set our disabled in-scene placed flag for spawning initially disabled in-scene placed objects.
355-
m_InScenePlacedDisabledByDefault = gameObject.activeInHierarchy;
355+
m_InScenePlacedDisabledByDefault = !gameObject.activeInHierarchy;
356356
}
357357
}
358358
#endif // UNITY_EDITOR

0 commit comments

Comments
 (0)