API reference
API reference
Select your platform
No SDKs available
No versions available

TransferOwnershipFusion Class

Extends NetworkBehaviour
Implements ITransferOwnership
The class responsible for the networking part of transferring ownership of a networked game object when using the Photon Fusion networking framework.
It implements the ITransferOwnership interface and is used by TransferOwnershipOnSelect which handles the non-networking logic.

Methods

HasOwnership ()
Indicates whether the local player has ownership of the networked game object.
An implementation of the ITransferOwnership interface.
Signature
bool HasOwnership()
Returns
bool  'true' if the local player has ownership of the networked game object.
TransferOwnershipToLocalPlayer ()
Transfers the ownership of the networked game object to the local player.
An implementation of the ITransferOwnership interface.
Signature
void TransferOwnershipToLocalPlayer()
Returns
void