SetCustomProperties Type

Options
Hello, everybody!
I'm looking for answers regarding the "SetCustomProperties" function.

I'm trying to initialize a "List" property.



The code does not return me any error however when I launch the game, I am entitled to the following error :



Note that I had no problem with float values. What can I do?
Thanks in advance!

Comments

  • S_Oliver
    S_Oliver ✭✭✭
    edited July 2018
    Options
    Like the Error said you cant serialize a list, you could use a byte array ..
    https://doc.photonengine.com/en-us/realtime/current/reference/serialization-in-photon

    But why do you set stuff lile this to properties is this really necessary?
  • STDSoftware
    Options
    That's what I thought, but I wanted to be sure. Thank you!

    I'm creating a game that only requires 2 players per room. I would like to not have to instantiate PhotonPlayers to pass data between the two but only use CustomProperties (I only have some data like life to update between the two screens).