Serializable Data on Server Size
TrinhAnh
✭
i am using sdk photon server , And i want to send data from Server to Clients like it:
public class UserInfo: System.Object {
[SerializeField] protected int _id;
[SerializeField] protected string _name;
[SerializeField] protected int _level;
public UserInfo(int id;, string name;, int level;) {
this._id = id;
this._name= name;
this._level = level;
}
So, i tried some ways, but incomplete .
public class UserInfo: System.Object {
[SerializeField] protected int _id;
[SerializeField] protected string _name;
[SerializeField] protected int _level;
public UserInfo(int id;, string name;, int level;) {
this._id = id;
this._name= name;
this._level = level;
}
So, i tried some ways, but incomplete .
0
Comments
-
hi, @TrinhAnh
photon serializer does not support this. You should use some other serializer and custom types
here is clientside documentation
https://doc.photonengine.com/en-us/server/current/reference/serialization-in-photon
best,
ilya0