# Blueprint array resize node not persistent

**URL:** <https://forums.unrealengine.com/t/blueprint-array-resize-node-not-persistent/405292>\
**Category:** Blueprint\
**Tags:** resize, unreal-engine, Blueprint, question\
**Created:** [September 23, 2017, 4:26pm UTC](https://forums.unrealengine.com/t/blueprint-array-resize-node-not-persistent/405292 "2017-09-23T16:26:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyanTylerRae](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanTylerRae](https://forums.unrealengine.com/u/RyanTylerRae)\
**Post date:** [September 23, 2017, 4:26pm UTC](https://forums.unrealengine.com/t/blueprint-array-resize-node-not-persistent/405292/1 "2017-09-23T16:26:42Z")

</div>

Repro Steps:

- add an empty array variable to a blueprint
- in the BeginPlay, resize the array using the array resize node
- break in Tick and view the array, the size will still be zero

Tried with, public, private, editable, and non-editable array variable types.  
To be clear, the arrays _did_ resize in the BeginPlay.

EDIT: I also tried creating a helper function that just added members to the array and had the same results. Is the array variable type just not dynamic?

 ![214395-img.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/7137498db17a1c137d10d27793b6bf7d15644934.png)

This is my use case. I’m guessing that either the array is not dynamic or the array used in the function is just a local 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:** [September 23, 2017, 4:36pm UTC](https://forums.unrealengine.com/t/blueprint-array-resize-node-not-persistent/405292/2 "2017-09-23T16:36:59Z")

</div>

What do you mean? This just prints 10, as expected:

 ![214391-array.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/c/2acfafbe7df77dba2945e1c17e20ec97ee3c36a4.png)

What do you mean by _break_, are you talking about structs?

> To be clear, the arrays did resize in  
> the BeginPlay.

So which one is it?

---

<div class="post-metadata">

**Author:** ![RyanTylerRae](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanTylerRae](https://forums.unrealengine.com/u/RyanTylerRae)\
**Post date:** [September 23, 2017, 4:45pm UTC](https://forums.unrealengine.com/t/blueprint-array-resize-node-not-persistent/405292/3 "2017-09-23T16:45:39Z")

</div>

Hi. I meant placing a breakpoint.

---

<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:** [September 23, 2017, 4:53pm UTC](https://forums.unrealengine.com/t/blueprint-array-resize-node-not-persistent/405292/4 "2017-09-23T16:53:16Z")

</div>

You put the break where, in Tick? As default, actors tick before BeginPlay:

![214401-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/9/97917bd8c570bd68c1d4447e68c9b461a930c205.png)

---

<div class="post-metadata">

**Author:** ![RyanTylerRae](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanTylerRae](https://forums.unrealengine.com/u/RyanTylerRae)\
**Post date:** [September 23, 2017, 4:57pm UTC](https://forums.unrealengine.com/t/blueprint-array-resize-node-not-persistent/405292/5 "2017-09-23T16:57:25Z")

</div>

Yeah, that was my initial thought, but it is unchecked. I’ve also been checking more than the first Tick.

---

<div class="post-metadata">

**Author:** ![RyanTylerRae](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanTylerRae](https://forums.unrealengine.com/u/RyanTylerRae)\
**Post date:** [September 23, 2017, 4:58pm UTC](https://forums.unrealengine.com/t/blueprint-array-resize-node-not-persistent/405292/6 "2017-09-23T16:58:27Z")

</div>

One difference I notice between your test and mine is that you use one variable node for both functions, though I would be surprised if that made a difference. EDIT: Yeah, it doesn’t.

---

<div class="post-metadata">

**Author:** ![RyanTylerRae](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanTylerRae](https://forums.unrealengine.com/u/RyanTylerRae)\
**Post date:** [September 23, 2017, 5:04pm UTC](https://forums.unrealengine.com/t/blueprint-array-resize-node-not-persistent/405292/7 "2017-09-23T17:04:39Z")

</div>

I’m a doofus. Just don’t accidentally clear your array …

---

<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:** [September 23, 2017, 5:11pm UTC](https://forums.unrealengine.com/t/blueprint-array-resize-node-not-persistent/405292/8 "2017-09-23T17:11:22Z")

</div>

Yeah, that sucks, ouch 😉
