Sign In Register

How can we help you today?

Start a new topic

Unity GetGSDataList need to contain null elements

 "inventory":[
{
"name":"a",
"desc":"aa",
},
null,

{

"name":"b",

"desc":"bb",

}]


In Unity, this filtered out null and left it with a list of 2 elements. Any quick solutions?

Also, why does it need to be filtered in the first place?

1 Comment

Yeah, it has been that way for a couple of years. It basically comes from a limitation of the deserialization process. 

Take a look at this thread for a workaround: https://support.gamesparks.net/support/discussions/topics/1000072083


I hope that helps. 


Best,


Patrick

Login to post a comment