NetworkServer.AddPlayerForConnection
then it will automatically be given authority.AssignClientAuthority
. This can be done by calling AssignClientAuthority
on the object you want to give authority to.identity.RemoveClientAuthority
to remove client authority from an object.NetworkServer.ReplacePlayerForConnection
.OnStartAuthority
or OnStopAuthority
functions to be called.identity.hasAuthority
property can be used to check if the local player has authority over an object.identity.connectionToClient
property can be check to see which client has authority over an object. If it is null then the server has authority.