Search Unity

Third Party Multiplayer Networking Serializing Custom Data [Photon]

Discussion in 'Multiplayer' started by jpthek9, Nov 25, 2014.

  1. jpthek9

    jpthek9

    Joined:
    Nov 28, 2013
    Posts:
    944
    I'm an avid user of Photon's servers and I really like their helpful built-in functions. I'm having a bit of trouble with sending over a list of integers, however. This list of integers is for finding all PhotonViews defined by those integers, and it's very dynamic. Ways to do this in Unity's standard networking solution would help me as well, but please be specific. Thanks in advance!
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,068
    In Photon, you can't send List<int> because we don't support generic list. You can convert the List into an int[] and send that as parameter of an PRC or within OnPhotonSerializeView().