Getting C# sharp to acces a Java global Array and Components

I’m trying to finally learn C#
and am trying to get a script to access an global Java array.

The array has GameObjects in it and is in the plug-ins folder so it compiles first. And I’m trying to convert this java code to C#:

tmpTexture = (GLOBALZ.objectsInWeapons[40+(10 * rows) +
colmn].GetComponent(ObjectInfo).iconTexture);//set the object's
texture

Basically all the game objects have a script attached called “ObjectInfo” that stores their icon.

But My inventory Windows are in C# and need to access this NFO.

Thanks for any Help :slight_smile:

You mean Javascript. C# can’t use Javascript arrays, so you have to use something else, like built-in arrays or ArrayList.

–Eric