# How to set variable default value during runtime

**URL:** <https://forums.unrealengine.com/t/how-to-set-variable-default-value-during-runtime/487088>\
**Category:** Community & Industry Discussion\
**Tags:** value, default, unreal-engine, Array, runtime, question\
**Created:** [August 5, 2021, 10:15pm UTC](https://forums.unrealengine.com/t/how-to-set-variable-default-value-during-runtime/487088 "2021-08-05T22:15:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BatYaggy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BatYaggy](https://forums.unrealengine.com/u/BatYaggy)\
**Post date:** [August 5, 2021, 10:15pm UTC](https://forums.unrealengine.com/t/how-to-set-variable-default-value-during-runtime/487088/1 "2021-08-05T22:15:35Z")

</div>

I have a large variable array with over 2000 members and I would like to set the default value to some value that occurs during runtime. How can I do this without manually copying the data into the default value?

---

<div class="post-metadata">

**Author:** ![BatYaggy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BatYaggy](https://forums.unrealengine.com/u/BatYaggy)\
**Post date:** [August 6, 2021, 1:39am UTC](https://forums.unrealengine.com/t/how-to-set-variable-default-value-during-runtime/487088/2 "2021-08-06T01:39:29Z")

</div>

Nvm. I created a system to convert the array into an array of strings. Then I joined the string array and printed it. Then I copied it from the output log and made it a default value.
