Title: NetworkTransform misses sync when GameObject is re-enabled; add option for automatic reassertion · Issue #3435 · Unity-Technologies/com.unity.netcode.gameobjects · GitHub
Open Graph Title: NetworkTransform misses sync when GameObject is re-enabled; add option for automatic reassertion · Issue #3435 · Unity-Technologies/com.unity.netcode.gameobjects
X Title: NetworkTransform misses sync when GameObject is re-enabled; add option for automatic reassertion · Issue #3435 · Unity-Technologies/com.unity.netcode.gameobjects
Description: Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer. - NetworkTransform misses sync when GameObject is re-enabled; add option for automatic reassertion · Issue #3435 · Unity-Technologies/com.unity.netcode.gameobjects
Open Graph Description: Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer. - Network...
X Description: Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer. - Network...
Opengraph URL: https://github.com/Unity-Technologies/com.unity.netcode.gameobjects
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NetworkTransform misses sync when GameObject is re-enabled; add option for automatic reassertion","articleBody":"Description\nWhen using NetworkTransform in server-authoritative mode, if a NetworkObject is deactivated on clients (e.g. via SetActive(false) or scene streaming), any transform changes (e.g. via Teleport) made while it's inactive are not propagated to the client once it's re-enabled. This results in position mismatches, where the client sees the object at its old position while the server has already moved it.\n\nThere is no warning, and the desync is silent unless manually corrected.\n\nReproduction Steps\nSpawn a server-authoritative NetworkObject with a NetworkTransform\n\nDeactivate the object on all clients (via RPC or reparenting in a disabled object)\n\nOn the server, call Teleport(...) to move the object\n\nReactivate the object after a short delay\n\nObserve: the client does not reflect the new position\n\nExpected Behavior\nClients should receive the latest authoritative position of the object when it becomes active again.\n\nWorkarounds\nCurrently, we must:\n\nReapply Teleport() after reactivating the object, or\n\nUse a coroutine to delay the teleport until the object is re-enabled, or\n\nUse custom NetworkVariable\u003cVector3> logic or whatever boiler plate works instead of NetworkTransform\n\nSuggested Fixes\nAdd a forceResyncOnEnable bool on NetworkTransform\n\nInternally store the last known transform state, and resend it on reactivation\n\nOr provide an OnNetworkObjectReenabled callback for developers to manually reassert state\n","author":{"url":"https://github.com/Wyndar","@type":"Person","name":"Wyndar"},"datePublished":"2025-05-02T19:15:02Z","url":"https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3435"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:b8ab1f62-d4b3-46ed-3a5d-99320cfc105c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2F2:49948:27F036:3645C3:6B006894 |
| html-safe-nonce | 64b852b2719287ef36d693bfa29821c7c486601fbce86c61bdae091ed050168b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkYyOjQ5OTQ4OjI3RjAzNjozNjQ1QzM6NkIwMDY4OTQiLCJ2aXNpdG9yX2lkIjoiODUyODY4Nzc0NTk3MzkwNTU1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e46d41b0e1ce4c4073fbff3edab266ee3fbab0a6cd0a354ace7d6136889eb61c |
| hovercard-subject-tag | repository:116385203 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3435 |
| twitter:image | https://opengraph.githubassets.com/0ff5f965166531818bd5b478cdf2f9ad260a25caf4f340bd5e651d551d567e9a/Unity-Technologies/com.unity.netcode.gameobjects |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ff5f965166531818bd5b478cdf2f9ad260a25caf4f340bd5e651d551d567e9a/Unity-Technologies/com.unity.netcode.gameobjects |
| og:image:alt | Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer. - Network... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| turbo-cache-control | no-cache |
| go-import | github.com/Unity-Technologies/com.unity.netcode.gameobjects git https://github.com/Unity-Technologies/com.unity.netcode.gameobjects.git |
| octolytics-dimension-user_id | 426196 |
| octolytics-dimension-user_login | Unity-Technologies |
| octolytics-dimension-repository_id | 116385203 |
| octolytics-dimension-repository_nwo | Unity-Technologies/com.unity.netcode.gameobjects |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 116385203 |
| octolytics-dimension-repository_network_root_nwo | Unity-Technologies/com.unity.netcode.gameobjects |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width