com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

fix: Update NetworkBehaviour on session owner promotion

Open EmandM opened this issue 1 week ago • 0 comments

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.IsSessionOwner is 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

EmandM avatar Dec 11 '25 20:12 EmandM