# How to copy an array of Objects instead of referencing

**URL:** <https://forums.unrealengine.com/t/how-to-copy-an-array-of-objects-instead-of-referencing/1215563>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [June 30, 2023, 4:00pm UTC](https://forums.unrealengine.com/t/how-to-copy-an-array-of-objects-instead-of-referencing/1215563 "2023-06-30T16:00:32Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![t.tutiya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/t.tutiya/32/924637_2.png) [@t.tutiya](https://forums.unrealengine.com/u/t.tutiya)\
**Post date:** [July 4, 2023, 2:29am UTC](https://forums.unrealengine.com/t/how-to-copy-an-array-of-objects-instead-of-referencing/1215563/12 "2023-07-04T02:29:33Z")

</div>

I think this article will be useful for you.

> [@Question on Copying Variables](https://forums.unrealengine.com/t/question-on-copying-variables/1170452/2):
>
> Deep, stopping only at instances of classes, which are referenced. In Verse, arrays are simple immutable values. Reading an array variable gives you an immutable array, and writing an array variable replaces the whole array with a new one. In Java and C#, arrays work differently. In Java and C#, mutable arrays are objects that are passed around by reference, and comparing two arrays tells you whether they are they are the same mutable array. Whereas in Verse, comparing two arrays tells you whe…

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-copy-an-array-of-objects-instead-of-referencing/1215563)._
