LoginSignup
3
0

More than 5 years have passed since last update.

Photon PUN2のOnPhotonSerializeView()で送受信できる型一覧

Posted at

はじめに

リファレンスに書いてある内容です。
Serialization in Photon | Photon Engine

Photonがサポートしている型

  • byte
  • bool
  • short
  • int
  • long
  • float
  • double
  • String
  • Object[]
  • byte[]
  • array
  • Hashtable
  • Dictionary

PUNがサポートしている追加の型

  • Vector2
  • Vector3
  • Quaternion
  • PhotonPlayer

それ以外の型を使いたい場合

SerializeMethodDeserializeMethodを定義してRegisterTypeをすれば、どの型でも扱えるようになる。

参考: 【Unity】僕もPhotonを使いたい #09 RPC() シリアライズ編 - うら干物書き

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0