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] (back port) (#3322)
Back-port of #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)
<!-- Add RFC link here if applicable. -->
## 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
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@ Additional documentation and release notes are available at [Multiplayer Documen
14
14
15
15
### Fixed
16
16
17
+
- Fixed issue where `AnticipatedNetworkVariable` previous value returned by `AnticipatedNetworkVariable.OnAuthoritativeValueChanged` is updated correctly on the non-authoritative side. (#3322)
0 commit comments