# Data table generation with scripting?

**URL:** <https://forums.unrealengine.com/t/data-table-generation-with-scripting/791660>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, Blueprint, question\
**Created:** [March 15, 2023, 9:21pm UTC](https://forums.unrealengine.com/t/data-table-generation-with-scripting/791660 "2023-03-15T21:21:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [March 15, 2023, 9:21pm UTC](https://forums.unrealengine.com/t/data-table-generation-with-scripting/791660/1 "2023-03-15T21:21:20Z")

</div>

Hi! I want to capture data during gameplay and store as an actual ASSET to be used on packaged versions and I wonder what is the best way to achieve this? I can easily store on a savegame but savegames cant be later used as actual assets in the editor so cant be embeedded in the packaged game.

Is there a way to script-create a data asset from scratch using editor utilities?  
I’d love to 1st store the data in some savegame and then use some scripting to turn the saved data into data table asset…I think there is a way to write a CSV file and then import that as data table…is there a better workflow?

Thanks!  
Dany

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [March 15, 2023, 10:43pm UTC](https://forums.unrealengine.com/t/data-table-generation-with-scripting/791660/2 "2023-03-15T22:43:34Z")

</div>

Ok making the CSV and then import is not that bad so this is the  
test i did:

1 - create myCustomStruct struct with the fields of the CSV, in my test I just added a single  
struct with one column titled ‘data’ of integer values

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/6/dc637f202aaf7f90518e8f932f5b1a39d0da00eb.png)

2 - create a test loop that generates an array of strings.

first item must hold the column names so as I have only one I  
just add → ,data ← as first item of the array…note the comma at the beginning because  
first column of the csv is for the ‘row name’ so I keep blank…ion that column I will add  
index numbers. then I just add strings in the loop making random integers  
when the loop ends It saves the csv file with victory plugin ‘File IO Save String Array to File’

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/5/f950d53619753afaf966b0e6c314fd057fee94ac.png)

3 - the file was created…I drag and drop the file into the editor and select myCustomStruct as format

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/7/b776faf8515ba638c17eea4f84ac093218f17472.jpeg)

done! 🙂

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/c/ccc9429355c225f0a4140aa8fa57dbf66dac578f.png)

The asset was created

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/3/183c38a9e14833043b8379e912471a495205d248.png)

---

<div class="post-metadata">

**Author:** ![JRA-EA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jra-ea/32/1103526_2.png) [@JRA-EA](https://forums.unrealengine.com/u/JRA-EA)\
**Post date:** [September 10, 2026, 9:03pm UTC](https://forums.unrealengine.com/t/data-table-generation-with-scripting/791660/3 "2026-09-10T21:03:33Z")

</div>

Just wanted to say that this helped me out a lot as I am currently doing large scale auditing of assets. Thanks for paving the way!

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [October 1, 2026, 1:00pm UTC](https://forums.unrealengine.com/t/data-table-generation-with-scripting/791660/4 "2026-10-01T13:00:59Z")

</div>

Glad to help!!! 🙂
