Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Which types can be used with player custom properties?

$
0
0
Hi,

I tried adding a value of type Dictionary<OurEnumType, OurOtherType> to the player custom properties, but got the error

Exception: Unexpected - cannot serialize Dictionary with value type: OurEnumType

I'm a bit confused about this error (why OurEnumType would be the problem?), but I'm guessing that what it really means is that it can't serialize the Dictionary - is this the case?

Please could you let me know what types can/cannot be added to custom properties? (or perhaps this is documented somewhere).

Thank you!

S

Viewing all articles
Browse latest Browse all 15755