<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>unreal engine datatables Archives - Couch Learn</title>
	<atom:link href="https://couchlearn.com/tag/unreal-engine-datatables/feed/" rel="self" type="application/rss+xml" />
	<link>https://couchlearn.com/tag/unreal-engine-datatables/</link>
	<description>Detailed Game Programming Tutorials</description>
	<lastBuildDate>Sun, 30 Mar 2025 23:02:38 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>

<image>
	<url>https://couchlearn.com/wp-content/uploads/2020/05/cropped-logolarge-32x32.png</url>
	<title>unreal engine datatables Archives - Couch Learn</title>
	<link>https://couchlearn.com/tag/unreal-engine-datatables/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to use Data Tables in your Unreal Engine 5 game</title>
		<link>https://couchlearn.com/how-to-use-data-tables-in-your-unreal-engine-5-game/</link>
					<comments>https://couchlearn.com/how-to-use-data-tables-in-your-unreal-engine-5-game/#respond</comments>
		
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Sun, 30 Mar 2025 23:02:36 +0000</pubDate>
				<category><![CDATA[Medium Difficulty]]></category>
		<category><![CDATA[Unreal Engine]]></category>
		<category><![CDATA[Unreal Engine 4]]></category>
		<category><![CDATA[Unreal Engine 5]]></category>
		<category><![CDATA[How to use Data Tables in your Unreal Engine 5 game]]></category>
		<category><![CDATA[ue5]]></category>
		<category><![CDATA[unreal engine]]></category>
		<category><![CDATA[unreal engine 5]]></category>
		<category><![CDATA[unreal engine datatables]]></category>
		<guid isPermaLink="false">https://couchlearn.com/?p=784</guid>

					<description><![CDATA[<p>Data tables are a useful feature of Unreal Engine 5. They allow the programmer/designer to create and access a pre-made list of information. When creating <a class="mh-excerpt-more" href="https://couchlearn.com/how-to-use-data-tables-in-your-unreal-engine-5-game/" title="How to use Data Tables in your Unreal Engine 5 game">[...]</a></p>
<p>The post <a href="https://couchlearn.com/how-to-use-data-tables-in-your-unreal-engine-5-game/">How to use Data Tables in your Unreal Engine 5 game</a> appeared first on <a href="https://couchlearn.com">Couch Learn</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Data tables are a useful feature of Unreal Engine 5. They allow the programmer/designer to create and access a pre-made list of information.<br><br><strong>When creating a data table you are asked to choose which struct you want to base the data table on.</strong><br><br>Here are a few game mechanic uses of data tables:</p>



<ul class="wp-block-list">
<li><em>RPG item data table that contains item stats such as damage, armour etc.</em></li>



<li><em>Subtitles for dialogue that can easily be accessed by character name.</em></li>



<li><em>An enemy data table containing a list of pre made enemy types with enemy health, damage, stamina etc.</em></li>
</ul>



<p>In this guide we will be showing you how to use Data Tables in your Unreal Engine 5 game.</p>



<h2 class="wp-block-heading">Pre-requisites</h2>



<p>To use Data Tables in Unreal Engine 5 you will need to know how to create and use structures.<br><a href="https://couchlearn.com/how-to-use-structs-in-unreal-engine-4/">Click here to read our guide on structures.</a><br><br>It would also help to know how to create and use an blueprint enum.<br><a href="https://couchlearn.com/enums-in-unreal-engine-4-blueprints/">Click here to learn about enums in Unreal Engine and how to create them in your project.</a></p>



<h2 class="wp-block-heading">What is a Data Table?</h2>



<p>In Unreal Engine 5, a Data Table is an extremely useful tool that allows you to define a list of data and store different values for this defined list based on a key.<br><br>This data is stored as an asset in your project which makes it incredibly easy to retrieve and update the data from anywhere in your code.<br><br>The data is also remembered inside of the editor meaning you can create your data while you are developing your project, then use the data inside of your project during runtime. <br><br>A great example of this is data for items or enemies in your project. This data can be set by you when designing your items and enemies which is then saved and persistent.<br><br>Making and using Data Tables in Unreal Engine 5 is easy and requires very little work. In the next section we explain how to make your own data table inside of your Unreal Engine 5 project!</p>



<h2 class="wp-block-heading">Making our Data Table</h2>



<h2 class="wp-block-heading">Creating an Enum</h2>



<p>Before we create our struct, we need to create an enum. This is an item rarity enum which will represent the quality of our role playing game item.<br><br>Simply create your enum by right clicking the content browser and clicking Enumeration in the Blueprint category.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="507" height="529" src="https://couchlearn.com/wp-content/uploads/2025/03/image-25.png" alt="" class="wp-image-2266" srcset="https://couchlearn.com/wp-content/uploads/2025/03/image-25.png 507w, https://couchlearn.com/wp-content/uploads/2025/03/image-25-288x300.png 288w" sizes="(max-width: 507px) 100vw, 507px" /></figure>



<p>Then set the values as shown that you require. If you are following along with this guide, copy the values in the image below.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="321" src="https://couchlearn.com/wp-content/uploads/2022/12/image-1-1024x321.png" alt="Creating a basic enumerator for our rarity values" class="wp-image-1902" srcset="https://couchlearn.com/wp-content/uploads/2022/12/image-1-1024x321.png 1024w, https://couchlearn.com/wp-content/uploads/2022/12/image-1-300x94.png 300w, https://couchlearn.com/wp-content/uploads/2022/12/image-1-768x240.png 768w, https://couchlearn.com/wp-content/uploads/2022/12/image-1.png 1217w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">Creating our Struct</h3>



<p>Now that we have our enum created, next we need to create the struct that our data table will use for the types of values it will hold.<br><br>Right click anywhere in the content browser, then click Structure in the Blueprints category.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="615" src="https://couchlearn.com/wp-content/uploads/2022/12/image-1024x615.png" alt="Creating a new structure" class="wp-image-1899" srcset="https://couchlearn.com/wp-content/uploads/2022/12/image-1024x615.png 1024w, https://couchlearn.com/wp-content/uploads/2022/12/image-300x180.png 300w, https://couchlearn.com/wp-content/uploads/2022/12/image-768x461.png 768w, https://couchlearn.com/wp-content/uploads/2022/12/image.png 1107w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then set the values as shown that you require. If you are following along with this guide, copy the values in the image below.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1012" height="308" src="https://couchlearn.com/wp-content/uploads/2022/12/image-6.png" alt="Adding the damage, rarity and sell price values to our struct" class="wp-image-1907" srcset="https://couchlearn.com/wp-content/uploads/2022/12/image-6.png 1012w, https://couchlearn.com/wp-content/uploads/2022/12/image-6-300x91.png 300w, https://couchlearn.com/wp-content/uploads/2022/12/image-6-768x234.png 768w" sizes="(max-width: 1012px) 100vw, 1012px" /></figure>



<h3 class="wp-block-heading">Creating our Data table</h3>



<p>Finally we can create our data table. This is done exactly the same way by right clicking inside of the content browser and clicking the Data Table option in the Miscellaneous category. </p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="654" src="https://couchlearn.com/wp-content/uploads/2022/12/image-3-1024x654.png" alt="Creating the datatable" class="wp-image-1904" srcset="https://couchlearn.com/wp-content/uploads/2022/12/image-3-1024x654.png 1024w, https://couchlearn.com/wp-content/uploads/2022/12/image-3-300x192.png 300w, https://couchlearn.com/wp-content/uploads/2022/12/image-3-768x491.png 768w, https://couchlearn.com/wp-content/uploads/2022/12/image-3.png 1373w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Next there is a popup asking which struct you want to use. In this guide we are using the ExampleStruct we made earlier.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="569" height="233" src="https://couchlearn.com/wp-content/uploads/2022/12/image-4.png" alt="Choosing our datatable row structure" class="wp-image-1905" srcset="https://couchlearn.com/wp-content/uploads/2022/12/image-4.png 569w, https://couchlearn.com/wp-content/uploads/2022/12/image-4-300x123.png 300w" sizes="(max-width: 569px) 100vw, 569px" /></figure>



<h3 class="wp-block-heading">Adding Values to the Data Table</h3>



<p>Now that are data table is created and configured correctly, we can press the Add button to add a new row to our data table.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="454" src="https://couchlearn.com/wp-content/uploads/2022/12/image-5-1024x454.png" alt="Adding a new row to the datatable" class="wp-image-1906" srcset="https://couchlearn.com/wp-content/uploads/2022/12/image-5-1024x454.png 1024w, https://couchlearn.com/wp-content/uploads/2022/12/image-5-300x133.png 300w, https://couchlearn.com/wp-content/uploads/2022/12/image-5-768x340.png 768w, https://couchlearn.com/wp-content/uploads/2022/12/image-5.png 1517w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>As you can see in the image below, the data table has a new row with some default values from our struct.</p>



<p>We can change the values in the &#8220;Row Editor&#8221; and the values in the data table will change above. <br><br><strong>We can now create as many entries as we want!</strong></p>



<figure class="wp-block-image size-full"><img decoding="async" width="949" height="443" src="https://couchlearn.com/wp-content/uploads/2022/12/image-7.png" alt="Showing the values in our new datatable row" class="wp-image-1909" srcset="https://couchlearn.com/wp-content/uploads/2022/12/image-7.png 949w, https://couchlearn.com/wp-content/uploads/2022/12/image-7-300x140.png 300w, https://couchlearn.com/wp-content/uploads/2022/12/image-7-768x359.png 768w" sizes="(max-width: 949px) 100vw, 949px" /></figure>



<p>Clicking the row name section in the row, we can change the row name. In this example we are using BronzeSword as the new row name.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="620" height="301" src="https://couchlearn.com/wp-content/uploads/2022/12/image-8.png" alt="Changing the values of the datatable row" class="wp-image-1910" srcset="https://couchlearn.com/wp-content/uploads/2022/12/image-8.png 620w, https://couchlearn.com/wp-content/uploads/2022/12/image-8-300x146.png 300w" sizes="(max-width: 620px) 100vw, 620px" /></figure>



<p>The Damage, Rarity, and Sell Price values we defined earlier are in the Data Table view, and the Row Editor below.<br><br>Changing the values in the Row Editor will affect the values stored in the data table.<br><br>Don&#8217;t forget to <strong>Save </strong>often to prevent losing your changes!</p>



<figure class="wp-block-image size-full"><img decoding="async" width="632" height="397" src="https://couchlearn.com/wp-content/uploads/2022/12/image-9.png" alt="Setting more datatable row values" class="wp-image-1911" srcset="https://couchlearn.com/wp-content/uploads/2022/12/image-9.png 632w, https://couchlearn.com/wp-content/uploads/2022/12/image-9-300x188.png 300w" sizes="(max-width: 632px) 100vw, 632px" /></figure>



<h2 class="wp-block-heading">Using your Data Table</h2>



<p>Now that we have our data table created, configured, and filled with data, we can now learn how to access this data in our code.<br><br>We have create an Event BeginPlay node to our level blueprint and have created a Get Data Table Row node.<br><br>This Get Data Table Row node asks for a data table asset reference, and a row name.<br><br>Data Table reference is our data table we created earlier, and the Row Name is the row we want to try to find the data for.<br><br>If the row is found, the Row Found pin will run code and the Out Row will contain our data, if the row is not found, the Row Not Found pin will run code and the Out Row data will be invalid.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="639" height="263" src="https://couchlearn.com/wp-content/uploads/2025/03/image-18.png" alt="Creating a get data table row node" class="wp-image-2258" srcset="https://couchlearn.com/wp-content/uploads/2025/03/image-18.png 639w, https://couchlearn.com/wp-content/uploads/2025/03/image-18-300x123.png 300w" sizes="(max-width: 639px) 100vw, 639px" /></figure>



<p>We can set the Data Table reference by clicking on the select asset drop down and selecting our data table from the list of assets.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="593" height="301" src="https://couchlearn.com/wp-content/uploads/2025/03/image-19.png" alt="Setting the data table reference in the get data table row node" class="wp-image-2259" srcset="https://couchlearn.com/wp-content/uploads/2025/03/image-19.png 593w, https://couchlearn.com/wp-content/uploads/2025/03/image-19-300x152.png 300w" sizes="(max-width: 593px) 100vw, 593px" /></figure>



<p>Now we can split the Out Row struct by right clicking and clicking Split Struct Pin in the menu. This will split our struct into all the types and values in contains for easy visibility.<br><br>We can also see that our Row Name is now a drop down that contains all the available row names. This can be overridden by connecting a value to the Row Name pink pin.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="693" height="285" src="https://couchlearn.com/wp-content/uploads/2025/03/image-20.png" alt="Splitting the data table row struct to see the values and types" class="wp-image-2260" srcset="https://couchlearn.com/wp-content/uploads/2025/03/image-20.png 693w, https://couchlearn.com/wp-content/uploads/2025/03/image-20-300x123.png 300w" sizes="(max-width: 693px) 100vw, 693px" /></figure>



<p>Now that we have split our Out Row struct, we can see the Damage, Rarity, and Sell Price values we set earlier.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="565" height="243" src="https://couchlearn.com/wp-content/uploads/2025/03/image-21.png" alt="Getting the row data from a specific row name key" class="wp-image-2261" srcset="https://couchlearn.com/wp-content/uploads/2025/03/image-21.png 565w, https://couchlearn.com/wp-content/uploads/2025/03/image-21-300x129.png 300w" sizes="(max-width: 565px) 100vw, 565px" /></figure>



<h3 class="wp-block-heading">Looping over your Data Table Rows</h3>



<p>Now that we can access a specific row in our data table, it is essential to know how to use a loop with a data table.<br><br>In the example below we have created a Get Data Table Row Names node. This returns an Array with all of the row names inside of the data table.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="541" height="163" src="https://couchlearn.com/wp-content/uploads/2025/03/image-22.png" alt="Getting the data table row names" class="wp-image-2262" srcset="https://couchlearn.com/wp-content/uploads/2025/03/image-22.png 541w, https://couchlearn.com/wp-content/uploads/2025/03/image-22-300x90.png 300w" sizes="(max-width: 541px) 100vw, 541px" /></figure>



<p>We can then connect this to a For Each Loop node. This will now run the Loop Body for each Row Name in the Out Row Names from our Data Table.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="773" height="193" src="https://couchlearn.com/wp-content/uploads/2025/03/image-23.png" alt="Creating a for loop from the gathered data table row names" class="wp-image-2263" srcset="https://couchlearn.com/wp-content/uploads/2025/03/image-23.png 773w, https://couchlearn.com/wp-content/uploads/2025/03/image-23-300x75.png 300w, https://couchlearn.com/wp-content/uploads/2025/03/image-23-768x192.png 768w" sizes="(max-width: 773px) 100vw, 773px" /></figure>



<p>Finally connecting our For Each Loop into a Get Data Table Row like before, we can then connect the Array Element pink pin to the Row Name pink pin. <br><br>This will now get the data for that row name each time the loop runs.<br><br>We can then use the Out Row values however we want in the project!</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1025" height="227" src="https://couchlearn.com/wp-content/uploads/2025/03/image-24.png" alt="Getting the datatable row using the looped array element name" class="wp-image-2264" srcset="https://couchlearn.com/wp-content/uploads/2025/03/image-24.png 1025w, https://couchlearn.com/wp-content/uploads/2025/03/image-24-300x66.png 300w, https://couchlearn.com/wp-content/uploads/2025/03/image-24-768x170.png 768w" sizes="(max-width: 1025px) 100vw, 1025px" /></figure>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Now you have learned how to create, configure, populate, and implement data tables in your Unreal Engine 5 project!<br><br>Almost every Unreal Engine project benefits from using a data table to efficiently and neatly store data for use within the systems you develop.<br><br>Working collaboratively using data tables makes sharing a single source of truth for your projects data simple and does not require any C++ knowledge!</p>



<h3 class="wp-block-heading">Further Reading:</h3>



<ul class="wp-block-list">
<li><a href="https://dev.epicgames.com/community/learning/tutorials/Gp9j/working-with-data-in-unreal-engine-data-tables-data-assets-uproperty-specifiers-and-more">A more advanced look into Data Table merging and composite tables from Unreal Engine 5&#8217;s wiki</a></li>



<li><a href="https://www.youtube.com/watch?v=aZdztLTG3OQ">A great visual guide for Data Tables by Gorka Games (Not affiliated with CouchLearn)</a></li>



<li><a href="https://dev.epicgames.com/documentation/en-us/unreal-engine/BlueprintAPI/DataTable">The official Unreal Engine 5 documentation for Data Tables in Blueprints</a></li>
</ul>
<p>The post <a href="https://couchlearn.com/how-to-use-data-tables-in-your-unreal-engine-5-game/">How to use Data Tables in your Unreal Engine 5 game</a> appeared first on <a href="https://couchlearn.com">Couch Learn</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://couchlearn.com/how-to-use-data-tables-in-your-unreal-engine-5-game/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: couchlearn.com @ 2026-04-15 17:17:12 by W3 Total Cache
-->