Hello, I want to create variables where each element can have individual properties inside of it.
I know I can create sort of a list with elements by using the brackets [ ] inside my script, to get an effect like this:

However I want to get an effect like this:

See how each element in the second image has it’s own properties? Is there any way I can achieve this? (in JS)
Thanks in advance!
dood2
2
Something like this?
public class MySweetData
{
var someBool : boolean = false;
var someFloat : float = 0.0f;
var someGameObject : GameObject;
}
var SweetDataArray : MySweetData[];
// Use this for initialization
function Start ()
{
}