Class NetworkObjectOwnershipComponent
Inheritance
NetworkObjectOwnershipComponent
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.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()
Gets called when the local client gains ownership of this object
Declaration
public override void OnGainedOwnership()
Overrides
OnLostOwnership()
Gets called when we loose ownership of this object
Declaration
public override void OnLostOwnership()
Overrides
ResetFlags()
Declaration
public void ResetFlags()