Sign In Register

How can we help you today?

Start a new topic

Unity - ScriptData Issue

 I'm having an issue with Unity throwing a Null reference when I try to access the scriptData sent from a response, I've posted the console output and the code I'm using, if anyone could advise on the issue please.

Console: (ignore the top null reference, it's a duplicate)

Unity side code:

 Console log with full stack trace of the error:

Hi Ian

Can you attach a full console log of the error to this post?



Hey there, thanks for the reply.

Here is a picture of the code I use for my playerData, it's a simple singleton pattern with member variables that correspond to the data being sent.



How you are getting the data form the ScriptData looks correct.
How are you setting up the playerData object.



Login to post a comment