# setting array elements in editor

**URL:** https://discussions.unity.com/t/setting-array-elements-in-editor/68219
**Category:** Questions & Answers
**Created:** [April 10, 2013, 3:40am UTC](https://discussions.unity.com/t/setting-array-elements-in-editor/68219 "2013-04-10T03:40:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kittureddy425](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kittureddy425](https://discussions.unity.com/u/kittureddy425)
#### Post date: [April 10, 2013, 3:40am UTC](https://discussions.unity.com/t/setting-array-elements-in-editor/68219/1 "2013-04-10T03:40:32Z")

</div>

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

---

<div class="post-metadata">

### Author: ![DaveA](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@DaveA](https://discussions.unity.com/u/DaveA)
#### Post date: [April 10, 2013, 3:42am UTC](https://discussions.unity.com/t/setting-array-elements-in-editor/68219/2 "2013-04-10T03:42:12Z")

</div>

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.
