Quantcast
Channel: Answers for "Public variable giving me "null reference exception""
Browsing latest articles
Browse All 4 View Live

Answer by roamcel

For what I understand of your code, since you're not retrieving ItemInfo from a component, you need to declare its class as STATIC to be able to use it. Unfortunately I don't know the js syntax for...

View Article



Answer by Bunny83

I guess you set the item array in the inspector? In this case you shouldn't create the array yourself.this line will recreate the whole array and deletes the old one:items = new...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images