# No Get Ref for actor subclass array?

**URL:** <https://forums.unrealengine.com/t/no-get-ref-for-actor-subclass-array/99187>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 27, 2017, 11:17pm UTC](https://forums.unrealengine.com/t/no-get-ref-for-actor-subclass-array/99187 "2017-08-27T23:17:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![GamesByH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GamesByH](https://forums.unrealengine.com/u/GamesByH)\
**Post date:** [August 27, 2017, 11:17pm UTC](https://forums.unrealengine.com/t/no-get-ref-for-actor-subclass-array/99187/1 "2017-08-27T23:17:27Z")

</div>

Hey. When i take an array variable set to use a actor subclass, and I drag out of it I only see get a copy instead of get a ref for an input index. Why is this?  
Is there any way to get a reference instead of a copy?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 27, 2017, 11:52pm UTC](https://forums.unrealengine.com/t/no-get-ref-for-actor-subclass-array/99187/2 "2017-08-27T23:52:23Z")

</div>

For objects you always get a reference. The return is a “copy” but still refers to the same object. Changes made to this item will be propagated back to the array.

 ![Untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/c/acc017b929450150e93c021c05463b8bb4bc7604.png)

For non-object variables, you can right click the node and choose whether it’s a copy or a reference and set-by-ref accordingly:

 ![Untitled2.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/6/26df63bbaa72a88cb7011319b61b6434b412eb0d.png)

---

<div class="post-metadata">

**Author:** ![GamesByH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GamesByH](https://forums.unrealengine.com/u/GamesByH)\
**Post date:** [August 27, 2017, 11:58pm UTC](https://forums.unrealengine.com/t/no-get-ref-for-actor-subclass-array/99187/3 "2017-08-27T23:58:44Z")

</div>

Oh! I hope someone fixes that, that’s very confusing. Well, thank you! How do I submit a bug report for this?

---

<div class="post-metadata">

**Author:** ![ArghCrazy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArghCrazy](https://forums.unrealengine.com/u/ArghCrazy)\
**Post date:** [March 26, 2020, 12:53pm UTC](https://forums.unrealengine.com/t/no-get-ref-for-actor-subclass-array/99187/4 "2020-03-26T12:53:46Z")

</div>

sorry to resurrect a dead thread but i was running low on sleep and noticed this same thing and googled it but then i came to my senses and realized. its not a bug. an array of objects (ie: custom actors) isn’t an array of objects at all… its an array of object REFERENCES. so you’re copying the reference which gives u a reference to the object (the object being a custom actor).

---

<div class="post-metadata">

**Author:** ![FridayIsTheBest](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FridayIsTheBest](https://forums.unrealengine.com/u/FridayIsTheBest)\
**Post date:** [April 23, 2020, 2:33pm UTC](https://forums.unrealengine.com/t/no-get-ref-for-actor-subclass-array/99187/5 "2020-04-23T14:33:13Z")

</div>

It is still present nearly three years later and highly confusing.

---

<div class="post-metadata">

**Author:** ![vagabond00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vagabond00](https://forums.unrealengine.com/u/vagabond00)\
**Post date:** [May 11, 2022, 11:23pm UTC](https://forums.unrealengine.com/t/no-get-ref-for-actor-subclass-array/99187/6 "2022-05-11T23:23:16Z")

</div>

Hi, I know this is an old thread but I just wanted to expand on this in case anyone else encounters it.

It seems like there is a lot of confusion around the Array Get node, as it sounds in the tooltip like it returns a copy of the Object itself, after some tests, and reading this thread as well as threads [Here](https://forums.unrealengine.com/t/blueprint-array-get-by-reference-and-edit-struct-elements-directly/17841) and [Here](https://www.reddit.com/r/unrealengine/comments/asz0kp/help_getting_a_reference_to_objects_in_an_array/) that what Get is doing is returning a copy of the Pointer to the Object, so when we Get the Object from the Array, then edit the object (ie set its variables), those changes to the Object will also effect the instance of the Object in the Array itself (as they are the same Object, referenced from two different copies of the pointer).

I agree with others on this thread that the wording is highly confusing though. Hopefully I understand this correctly as I am just learning Unreal, so please correct me if I am wrong!

---

<div class="post-metadata">

**Author:** ![User-400315961](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/user-400315961/32/899372_2.png) [@User-400315961](https://forums.unrealengine.com/u/User-400315961)\
**Post date:** [November 3, 2024, 3:39pm UTC](https://forums.unrealengine.com/t/no-get-ref-for-actor-subclass-array/99187/7 "2024-11-03T15:39:43Z")

</div>

Has this changed since this was posted?

I tried today to make an array of canvas panel objects, and it seems to forcibly convert nodes to copies even when explicitly told to use refs.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/9/2093400831c462d38a8a942622bda14e172d217f.png)

Apologies for the necro, I thought it would be more useful for others to ask in the top result of google than to make a new post. More visible for others here.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 3, 2024, 4:01pm UTC](https://forums.unrealengine.com/t/no-get-ref-for-actor-subclass-array/99187/8 "2024-11-03T16:01:50Z")

</div>

BPs copy a lot. But, if you get a copy of the canvas reference, it still points to the same canvas object, right? So, how does it matter whether you Get by copy or Get by ref in _this_ example? You’re _still_ talking to the same object.
