RPC variables
Options
friuns
✭
what variables RPC can send?
0
Comments
-
A list of supported datatypes is online. Read "Operation Content - Serializable Types":
http://doc.exitgames.com/v3/photonclient/binaryprotocol0 -
i mean in Unity Networking Plugin, here i found
public static class CustomTypes
{
public static void Register()
{
PhotonPeer.RegisterType(typeof(Vector2), (byte)'W', SerializeVector2, DeserializeVector2);
PhotonPeer.RegisterType(typeof(Vector3), (byte)'V', SerializeVector3, DeserializeVector3);
PhotonPeer.RegisterType(typeof(Transform), (byte)'T', SerializeTransform, DeserializeTransform);
PhotonPeer.RegisterType(typeof(Quaternion), (byte)'Q', SerializeQuaternion, DeserializeQuaternion);
PhotonPeer.RegisterType(typeof(PhotonPlayer), (byte)'P', SerializePhotonPlayer, DeserializePhotonPlayer);
PhotonPeer.RegisterType(typeof(PhotonViewID), (byte)'I', SerializePhotonViewID, DeserializePhotonViewID);
}0