com.unity.netcode.gameobjects
com.unity.netcode.gameobjects copied to clipboard
fix: in-scene networkobject with networktransform synchronization when parented under gameobject [MTT-8402]
Fixing issue where parenting synchronization was not properly handling the scenario where a NetworkObject is parented under a GameObject (with or without auto object parent sync enabled).
fix: #2888
Companion PR: #2898 (merged)
Changelog
- Fixed: Issue where an in-scene placed
NetworkObjectwithNetworkTransformthat is also parented under aGameObjectwould not properly synchronize when the parent GameObject had a world space position other than 0,0,0.
Testing and Documentation
- Includes integration test (
InScenePlacedNetworkObjectTests.ParentedInSceneObjectUnderGameObject). - No documentation changes or additions were necessary.