You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: AnticipatedNetworkVariable not updating previous value [MTTB-1036] (#3306)
This fixes the issue where the `AnticipatedNetworkVariable` previous
value was never updated on the non-authority/write permission instances
when the `OnAuthoritativeValueChanged` callback was invoked.
[MTTB-1036](https://jira.unity3d.com/browse/MTTB-1036)
Back port: #3322
## Changelog
- Fixed: Issue where the `AnticipatedNetworkVariable` previous value was
never updated on the non-authority/write permission instances when the
`OnAuthoritativeValueChanged` callback was invoked.
## Testing and Documentation
- Includes integration test
`NetworkVariableAnticipationTests.PreviousValueIsMaintainedProperly`.
- No documentation changes or additions were necessary.
<!-- Uncomment and mark items off with a * if this PR deprecates any
API:
### Deprecated API
- [ ] An `[Obsolete]` attribute was added along with a `(RemovedAfter
yyyy-mm-dd)` entry.
- [ ] An [api updater] was added.
- [ ] Deprecation of the API is explained in the CHANGELOG.
- [ ] The users can understand why this API was removed and what they
should use instead.
-->
Copy file name to clipboardExpand all lines: com.unity.netcode.gameobjects/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
15
15
16
16
### Fixed
17
17
18
+
- Fixed issue where `AnticipatedNetworkVariable` previous value returned by `AnticipatedNetworkVariable.OnAuthoritativeValueChanged` is updated correctly on the non-authoritative side. (#3306)
18
19
- Fixed `OnClientConnectedCallback` passing incorrect `clientId` when scene management is disabled. (#3312)
19
20
- Fixed issue where the `NetworkObject.Ownership` custom editor did not take the default "Everything" flag into consideration. (#3305)
20
21
- Fixed DestroyObject flow on non-authority game clients. (#3291)
0 commit comments