# How to fill an array in a parent creative\_device with children of type AudioPlayer

**URL:** <https://forums.unrealengine.com/t/how-to-fill-an-array-in-a-parent-creative-device-with-children-of-type-audioplayer/1135076>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [April 20, 2023, 9:14pm UTC](https://forums.unrealengine.com/t/how-to-fill-an-array-in-a-parent-creative-device-with-children-of-type-audioplayer/1135076 "2023-04-20T21:14:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![papunglian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/papunglian/32/693304_2.png) [@papunglian](https://forums.unrealengine.com/u/papunglian)\
**Post date:** [April 20, 2023, 9:14pm UTC](https://forums.unrealengine.com/t/how-to-fill-an-array-in-a-parent-creative-device-with-children-of-type-audioplayer/1135076/1 "2023-04-20T21:14:25Z")

</div>

How to fill an array in a parent creative\_device with children of type AudioPlayer. I am new to Verse, so any pointers, or links to examples would be very helpful and much appreciated

---

<div class="post-metadata">

**Author:** ![TomJank](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomjank/32/887940_2.png) [@TomJank](https://forums.unrealengine.com/u/TomJank)\
**Post date:** [April 20, 2023, 10:09pm UTC](https://forums.unrealengine.com/t/how-to-fill-an-array-in-a-parent-creative-device-with-children-of-type-audioplayer/1135076/2 "2023-04-20T22:09:18Z")

</div>

To be honest, not fully sure what you mean by a “parent” audio device. But hopefully this should get you started.

```auto
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

AudioPlayerArray_device := class(creative_device):

    @editable AudioPlayer1 : audio_player_device = audio_player_device{}
    @editable AudioPlayer2 : audio_player_device = audio_player_device{}
    @editable AudioPlayer3 : audio_player_device = audio_player_device{}

    var AudioPlayerArray : []audio_player_device = array{}

    OnBegin<override>()<suspends>:void=
        set AudioPlayerArray = array{AudioPlayer1, AudioPlayer2, AudioPlayer3}
    

```

---

<div class="post-metadata">

**Author:** ![K-MUS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@K-MUS](https://forums.unrealengine.com/u/K-MUS)\
**Post date:** [April 21, 2023, 3:03am UTC](https://forums.unrealengine.com/t/how-to-fill-an-array-in-a-parent-creative-device-with-children-of-type-audioplayer/1135076/3 "2023-04-21T03:03:09Z")

</div>

At least for now you can’t access child or attached object in the editor vis Verse. You can only get a reference vía @editable or use tag to get the refferences

---

<div class="post-metadata">

**Author:** ![papunglian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/papunglian/32/693304_2.png) [@papunglian](https://forums.unrealengine.com/u/papunglian)\
**Post date:** [April 21, 2023, 12:47pm UTC](https://forums.unrealengine.com/t/how-to-fill-an-array-in-a-parent-creative-device-with-children-of-type-audioplayer/1135076/4 "2023-04-21T12:47:15Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![papunglian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/papunglian/32/693304_2.png) [@papunglian](https://forums.unrealengine.com/u/papunglian)\
**Post date:** [April 21, 2023, 12:54pm UTC](https://forums.unrealengine.com/t/how-to-fill-an-array-in-a-parent-creative-device-with-children-of-type-audioplayer/1135076/5 "2023-04-21T12:54:19Z")

</div>

By Parent, I am imagining an actor with audioPlayer actors in its subgraph. Thanks for your code suggestion.
