Accessing array var from other script


i've got an array which is lkoaded into script at start function. i want to access a field in this array within another script is there any mrans of doing this?

i used: temp.GetComponentInChildren(MainCommentWindowOpen).thisOrb.description = orbDescription;

but keep getting the NullReferenceException: Object reference not set to an instance of an object

any help is appreciated.


When you get a NullReference, it's often usful to split up long lines like the one you have there, so you figure out exactly which line produces the NullReference.

In your line I also don't see you actually indexing into an array. Perhaps you could edit your post to contain a bit more sourcecode so we can better help you.