Class NetworkObjectOwnershipComponent
Inheritance
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class NetworkObjectOwnershipComponent : NetworkBehaviour
Fields
OnGainedOwnershipFired
Declaration
public bool OnGainedOwnershipFired
Field Value
Type | Description |
---|---|
bool |
OnLostOwnershipFired
Declaration
public bool OnLostOwnershipFired
Field Value
Type | Description |
---|---|
bool |
Methods
OnGainedOwnership()
Invoked on both the server and the local client of the owner when Network
Declaration
public override void OnGainedOwnership()
Overrides
OnLostOwnership()
Invoked on the local client when it loses ownership of the associated Network
Declaration
public override void OnLostOwnership()
Overrides
ResetFlags()
Declaration
public void ResetFlags()