From fd90edc1cac15dfc4d074c5b219cf5b4e8e005b7 Mon Sep 17 00:00:00 2001 From: Emma Date: Tue, 25 Mar 2025 11:39:44 -0400 Subject: [PATCH 1/2] fix: Sync transform position on spawn --- com.unity.netcode.gameobjects/Components/NetworkTransform.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.netcode.gameobjects/Components/NetworkTransform.cs b/com.unity.netcode.gameobjects/Components/NetworkTransform.cs index 77a7f4293e..90faadae70 100644 --- a/com.unity.netcode.gameobjects/Components/NetworkTransform.cs +++ b/com.unity.netcode.gameobjects/Components/NetworkTransform.cs @@ -2785,7 +2785,7 @@ public override void OnNetworkSpawn() Initialize(); - if (CanCommitToTransform && UseHalfFloatPrecision) + if (CanCommitToTransform) { SetState(GetSpaceRelativePosition(), GetSpaceRelativeRotation(), GetScale(), false); } From 9190cbeff0f743a8c95abee40d6b6e09e607e44f Mon Sep 17 00:00:00 2001 From: Emma Date: Tue, 25 Mar 2025 11:50:09 -0400 Subject: [PATCH 2/2] Update CHANGELOG --- com.unity.netcode.gameobjects/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.netcode.gameobjects/CHANGELOG.md b/com.unity.netcode.gameobjects/CHANGELOG.md index 5cd33805fa..b661832368 100644 --- a/com.unity.netcode.gameobjects/CHANGELOG.md +++ b/com.unity.netcode.gameobjects/CHANGELOG.md @@ -14,6 +14,7 @@ Additional documentation and release notes are available at [Multiplayer Documen ### Fixed +- Fixed initial `NetworkTransform` spawn, ensure it uses world space. (#3361) - Fixed issue where `AnticipatedNetworkVariable` previous value returned by `AnticipatedNetworkVariable.OnAuthoritativeValueChanged` is updated correctly on the non-authoritative side. (#3322) ### Changed