🌐
Photon PUN2のOnPhotonSerializeView()で送受信できる型一覧
はじめに
リファレンスに書いてある内容です。
Serialization in Photon | Photon Engine
Photonがサポートしている型
- byte
- bool
- short
- int
- long
- float
- double
- String
- Object[]
- byte[]
- array
- Hashtable
- Dictionary
PUNがサポートしている追加の型
- Vector2
- Vector3
- Quaternion
- PhotonPlayer
それ以外の型を使いたい場合
SerializeMethodとDeserializeMethodを定義してRegisterTypeをすれば、どの型でも扱えるようになる。
Discussion