Adding UI elements to the 'script' part in the editor?

Hello,

In unity, exposed variable are visible in the editor. Some elements (for example the particle emitter) have controls, in this area, to add new elements (I suppose this is some kind of array programmatically?). How would I do this myself?

If you happen to have a page where all info about this functionality is shown, please share :slight_smile:

Thanks in advance!

Simon.

well it is an array:

//define an GameObject array to add for example box collider
var objects: GameObject[];

for(var i=0;i<objects.length;i++) objects*.AddComponent("BoxCollider");*

its that simple
Well here u will get to add to array as many elements as u want and to each object there will be a BoxCollider attached, no matter how much elements have u added.
Cheers.