Table of Contents

RequestAuthority

Methods
void RequestAuthority(AuthorityType authorityType, Action<RequestAuthorityResult> onRequestFinished, CancellationToken cancellationToken = default)

Request authority over this entity.

Parameters
Type Name Description
AuthorityType authorityType

The type of control requested over the entity.

This should not be None, nor match the current authority type.

Action<RequestAuthorityResult> onRequestFinished

Callback invoked when the authority request has succeeded, failed, or been canceled.

CancellationToken cancellationToken

Token that can be used to cancel the authority request.

bool RequestAuthority(AuthorityType authorityType)
Parameters
Type Name Description
AuthorityType authorityType
Returns
Type Description
bool