Change number of variable accessible via inspector

dear community,

I would like to achieve something like:

my first nonworking idea was:

var bcount : int;

for (var i : int = 0; i < bcount; i ++) {

this[“b” + i] : PackedSprite; // I use SM2 you can also think of GameObject instead
}

thank you in advance for any help…

That’s what arrays are for:

var sprites : PackedSprite[];

–Eric

shame on me

thank you eric