# How to sync TArray elements value between editor and runtime

**URL:** <https://forums.unrealengine.com/t/how-to-sync-tarray-elements-value-between-editor-and-runtime/1538636>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [December 19, 2023, 5:20pm UTC](https://forums.unrealengine.com/t/how-to-sync-tarray-elements-value-between-editor-and-runtime/1538636 "2023-12-19T17:20:43Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [January 8, 2024, 2:16pm UTC](https://forums.unrealengine.com/t/how-to-sync-tarray-elements-value-between-editor-and-runtime/1538636/6 "2024-01-08T14:16:13Z")

</div>

You could maybe use a custom ini file to save out information for editor use

> [@How to store variables to a custom .ini file?](https://forums.unrealengine.com/t/how-to-store-variables-to-a-custom-ini-file/330274/6):
>
> This is an old question but I was having the same problem and happened across the solution, so I figured I’d post it for posterity. Here’s how it works: Your c++ class definition should look like this. UCLASS(config=NewConfigFileName) class YOURGAME\_API AExample : public AActor { GENERATED\_BODY() UPROPERTY(Config) int32 test\_number; UPROPERTY(Config) FString test\_string; } Edit: Oh and I almost forgot, you can have other properties in your UPROPERTY declarati…

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-sync-tarray-elements-value-between-editor-and-runtime/1538636)._
