# Data Tables/Data Assets/Structs, Which One Do I use?

**URL:** <https://forums.unrealengine.com/t/data-tables-data-assets-structs-which-one-do-i-use/1278422>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 31, 2023, 5:37am UTC](https://forums.unrealengine.com/t/data-tables-data-assets-structs-which-one-do-i-use/1278422 "2023-08-31T05:37:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blkhnd112](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blkhnd112](https://forums.unrealengine.com/u/blkhnd112)\
**Post date:** [August 31, 2023, 5:37am UTC](https://forums.unrealengine.com/t/data-tables-data-assets-structs-which-one-do-i-use/1278422/1 "2023-08-31T05:37:34Z")

</div>

In my game there will be factions with different properties  
 ![FactionStruct](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/d/add188137a497514758a6b4677d69cddad1c7843.png)  
This is the struct that I have for it with the properties that I want.  
What I want to be able to do is have the game create new factions as different events happen (runtime), and also there will be a faction editor that players can create and save. But since it is runtime that I need it to happen, I am kind of confused on how to approach it.

1. I can’t use Data Tables for this because Data Tables cannot be changed during runtime correct?
2. Data Assets is it possible to create new data assets during runtime?
3. I can change the struct file variables within a blueprint but I would just end up creating a bunch of children blueprints with variations of one.

How would I create and store these at runtime?

---

<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 31, 2023, 7:09am UTC](https://forums.unrealengine.com/t/data-tables-data-assets-structs-which-one-do-i-use/1278422/2 "2023-08-31T07:09:20Z")

</div>

Put the content of DT in a Map, now you can edit what you want. Or, when a faction is created, add it to an array. You will need to save the game at some point anyway, surely - so this will come handy sooner rather than later.

---

<div class="post-metadata">

**Author:** ![gardian206](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gardian206](https://forums.unrealengine.com/u/gardian206)\
**Post date:** [August 31, 2023, 11:06am UTC](https://forums.unrealengine.com/t/data-tables-data-assets-structs-which-one-do-i-use/1278422/3 "2023-08-31T11:06:52Z")

</div>

one of the biggest consideration is more how will the data be worked with during development.  
as there are also other methods of storing structs for a more in depth discussion of these and other methods you can reference this

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/c/cec305a093eeaedb807e44e7d0a45a4abcbde4db.jpeg "Working with Data in Unreal Engine 5 | Unreal Fest 2022") ](https://www.youtube.com/watch?v=HOpyZ8552oA)

---

<div class="post-metadata">

**Author:** ![DomusLudus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/domusludus/32/1215140_2.png) [@DomusLudus](https://forums.unrealengine.com/u/DomusLudus)\
**Post date:** [August 31, 2023, 2:25pm UTC](https://forums.unrealengine.com/t/data-tables-data-assets-structs-which-one-do-i-use/1278422/4 "2023-08-31T14:25:20Z")

</div>

> [@blkhnd112](#):
>
> I can’t use Data Tables for this because Data Tables cannot be changed during runtime correct?

A data table is nothing more than an array type structure and that one of its fields is an ID (Row Name) and the structures can be saved  
You can use the table as default values and then make changes to the structure.
