Enum NetworkObject.OwnershipPermissionsFailureStatus
In the event of an immediate (local instance) failure to change ownership, the following ownership permission failure status codes will be returned via OnOwnershipPermissionsFailure. Locked: The NetworkObject is locked and ownership cannot be acquired. RequestRequired: The NetworkObject requires an ownership request via RequestOwnership(). RequestInProgress: The NetworkObject is already processing an ownership request and ownership cannot be acquired at this time. NotTransferrable: The NetworkObject does not have the Transferable flag set and ownership cannot be acquired. SessionOwnerOnly: The NetworkObject has the SessionOwner flag set and ownership cannot be acquired.
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
public enum NetworkObject.OwnershipPermissionsFailureStatus
Fields
Name | Description |
---|---|
Locked | The NetworkObject is locked and ownership cannot be acquired |
NotTransferrable | The NetworkObject does not have the OwnershipStatus.Transferable flag set and ownership cannot be acquired |
RequestInProgress | The NetworkObject is already processing an ownership request and ownership cannot be acquired at this time |
RequestRequired | The NetworkObject requires an ownership request via RequestOwnership |
SessionOwnerOnly | The NetworkObject has the OwnershipStatus.SessionOwner flag set and ownership cannot be acquired |