I get no error from GetObjectList and GetDoubleList, giving me the correct length output of 4, but GetIntList gives me a "GS: System.InvalidCastException: Cannot cast from source type to destination type." on the Debug.Log line as test4 is apparently null.
The player ScriptData look like:
"scriptData": {
"games": [
1,
2,
3,
5
]
},
Is it a bug of some kind? Or am I missing something obvious?
1 person has this question
1 Comment
Customer Support
said
over 7 years ago
Hey Gabriel,
Your script looks fine to me, and i've tested this call myself trying to recreate your scriptData and it all works fine. Did you manage to figure out what was wrong?
Gabriel Sauve
Not sure what is happening here (in Unity with C#).
I get no error from GetObjectList and GetDoubleList, giving me the correct length output of 4, but GetIntList gives me a "GS: System.InvalidCastException: Cannot cast from source type to destination type." on the Debug.Log line as test4 is apparently null.
The player ScriptData look like:
Is it a bug of some kind? Or am I missing something obvious?
1 person has this question