How to use CustomClass?

Options
dsh0079
edited November 2013 in Photon Server
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

Comments