com.unity.netcode.gameobjects
com.unity.netcode.gameobjects copied to clipboard
fix: Update NetworkBehaviour on session owner promotion
Purpose of this PR
Ensure NetworkBehaviour.IsSessionOwner is correctly updated when a new DA session owner is promoted.
Jira ticket
todo fixes: #3815 fixes: #3803
Changelog
- Fixed:
NetworkBehaviour.IsSessionOwneris now updated when a new session owner is promoted. - Reset extended ownership flags (
Locked,Requested) when NetworkObject is despawned to ensure that they don't stay set on respawn.
Documentation
- No documentation changes or additions were necessary.
Testing & QA (How your changes can be verified during release Playtest)
Functional Testing
Manual testing :
- [ ]
Manual testing done
Automated tests:
- [ ]
Covered by existing automated tests - [x]
Covered by new automated tests
Does the change require QA team to:
- [ ]
Review automated tests? - [ ]
Execute manual tests? - [ ]
Provide feedback about the PR?
If any boxes above are checked the QA team will be automatically added as a PR reviewer.
Backports
DA only so no backport needed