# Assigning objects to an array of objects

**URL:** <https://forums.unrealengine.com/t/assigning-objects-to-an-array-of-objects/2381959>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [March 9, 2025, 2:02pm UTC](https://forums.unrealengine.com/t/assigning-objects-to-an-array-of-objects/2381959 "2025-03-09T14:02:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomkev300](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomkev300](https://forums.unrealengine.com/u/tomkev300)\
**Post date:** [March 9, 2025, 2:02pm UTC](https://forums.unrealengine.com/t/assigning-objects-to-an-array-of-objects/2381959/1 "2025-03-09T14:02:48Z")

</div>

Hey I’m currently facing the problem that I want to create an array of objects. In my case there should be an array of Miners. As it is not possible to directly assign the constructor to the array element I tried to solve it as shown in the picture. The problem here is that the array is currently empty and therefore it is not possible to assign the temporary object to the array.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/7/e872019412801befa8773966eeef5ecae1a76802.png)

What is the right way to assign objects to an array of objects?

---

<div class="post-metadata">

**Author:** ![btwixer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@btwixer](https://forums.unrealengine.com/u/btwixer)\
**Post date:** [March 9, 2025, 2:07pm UTC](https://forums.unrealengine.com/t/assigning-objects-to-an-array-of-objects/2381959/2 "2025-03-09T14:07:22Z")

</div>

You append an array (with the new element in it) to the array.

set Minors += array{TempMinor}

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 8, 2025, 2:08pm UTC](https://forums.unrealengine.com/t/assigning-objects-to-an-array-of-objects/2381959/3 "2025-04-08T14:08:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
