setting array elements in editor

AudioClip sound =new AudioClip;

how to set the array size and how to fill the elements with the sounds

how to fill the elements with sounds in this audioclip plz help me

1 Answer

1

Use the Inspector: set the size, then assign clips from object(s) which contain them

Use code:

sound = new AudioClip[10];
sound[0] = new AudioClip(); // etc.