Skip to content

Commit 8c3ae59

Browse files
style
updating a comment to better reflect the changes.
1 parent 165d57b commit 8c3ae59

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

com.unity.netcode.gameobjects/Runtime/Spawning/NetworkSpawnManager.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -949,9 +949,7 @@ internal NetworkObject CreateLocalNetworkObject(NetworkObject.SceneObject sceneO
949949
}
950950
}
951951

952-
// Set the transform unless we were spawned by a prefab handler
953-
// Note: prefab handlers are provided the position and rotation
954-
// but it is up to the user to set those values
952+
// Set the transform only if the sceneObject includes transform information.
955953
if (sceneObject.HasTransform)
956954
{
957955
// If world position stays is true or we have auto object parent synchronization disabled

0 commit comments

Comments
 (0)