Skip to content

fix: OnGainedOwnership and OnLostOwnership XML API updates #3365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ internal void InternalOnNetworkDespawn()

/// <summary>
/// In client-server contexts, this method is invoked on both the server and the local client of the owner when <see cref="Netcode.NetworkObject"/> ownership is assigned.
/// In distributed authority contexts, this method is only invoked on the local client that has been assigned ownership of the associated <see cref="Netcode.NetworkObject"/>.
/// In distributed authority contexts, this method is invoked on all clients connected to the session.
/// </summary>
public virtual void OnGainedOwnership() { }

Expand Down Expand Up @@ -863,7 +863,7 @@ internal void InternalOnOwnershipChanged(ulong previous, ulong current)
/// <summary>
/// In client-server contexts, this method is invoked on the local client when it loses ownership of the associated <see cref="Netcode.NetworkObject"/>
/// and on the server when any client loses ownership.
/// In distributed authority contexts, this method is only invoked on the local client that has lost ownership of the associated <see cref="Netcode.NetworkObject"/>.
/// In distributed authority contexts, this method is invoked on all clients connected to the session.
/// </summary>
public virtual void OnLostOwnership() { }

Expand Down