RPC (string methodName, PhotonPlayer targetPlayer, params object parameters) RpcSecure (string methodName, PhotonTargets target, bool encrypt, params object parameters) RPC (string methodName, PhotonTargets target, params object parameters)Ĭall a RPC method of this GameObject on remote clients of this room (or on all, inclunding this client). SerializeView ( PhotonStream stream, PhotonMessageInfo info)ĭeserializeView ( PhotonStream stream, PhotonMessageInfo info)Ĭan be used to refesh the list of MonoBehaviours on this GameObject while PhotonNetwork.UseRpcMonoBehaviourCache is true. OnMasterClientSwitched ( PhotonPlayer newMasterClient)Ĭheck ownerId assignment for sceneObjects to keep being owned by the MasterClient. Transfers the ownership of this PhotonView (and GameObject) to another player. TransferOwnership ( PhotonPlayer newOwner) Use it like a NetworkView.ĭepending on the PhotonView's ownershipTransfer setting, any client can request to become owner of the PhotonView. PUN's NetworkView replacement class for networking.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |