How to use CustomClass?
Options
such as:
[Serializable]
class ServerDataList{...}
but it will Debug error in server like this:
2013-10-31 16:13:14,648 [10] ERROR Photon.SocketServer.PeerBase [(null)] - System.IO.InvalidDataException: cannot serialize(): ContactCodes.ServerDataList
How to Translate Custom Class Data between client and server???? thanks
[Serializable]
class ServerDataList{...}
but it will Debug error in server like this:
2013-10-31 16:13:14,648 [10] ERROR Photon.SocketServer.PeerBase [(null)] - System.IO.InvalidDataException: cannot serialize(): ContactCodes.ServerDataList
How to Translate Custom Class Data between client and server???? thanks
0
Comments
-
You have to register the type.0
-
0
-
Please see my post in this thread: viewtopic.php?f=8&t=3028#p13947
Also make sure that you use the same type code on client and server.0 -
Nicole wrote:Please see my post in this thread: viewtopic.php?f=8&t=3028#p13947
Also make sure that you use the same type code on client and server.
thank you very much !!0