# How do I distinguish between Datatable and PrimaryDataAsset？

**URL:** <https://forums.unrealengine.com/t/how-do-i-distinguish-between-datatable-and-primarydataasset/759514>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [January 30, 2023, 7:27am UTC](https://forums.unrealengine.com/t/how-do-i-distinguish-between-datatable-and-primarydataasset/759514 "2023-01-30T07:27:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhuangbiiii](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zhuangbiiii/32/1188884_2.png) [@zhuangbiiii](https://forums.unrealengine.com/u/zhuangbiiii)\
**Post date:** [January 30, 2023, 7:27am UTC](https://forums.unrealengine.com/t/how-do-i-distinguish-between-datatable-and-primarydataasset/759514/1 "2023-01-30T07:27:50Z")

</div>

Hello everyone!  
When learning the perfect template of lyra, I found that many **PrimaryDataAssets** were used during initialization. After thinking about it, I think I can do the same work with **structures** and **datatables**.

So I want to know how I should understand their differences?

I searched the forum and found no relevant discussion. Any answer would be appreciated.

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [January 30, 2023, 10:37am UTC](https://forums.unrealengine.com/t/how-do-i-distinguish-between-datatable-and-primarydataasset/759514/2 "2023-01-30T10:37:54Z")

</div>

Primary Data Assets, Structures, and Data Tables in Unreal Engine are all used to store data and make it reusable. However, each has a specific purpose and use case:

1. Structures: A Structure is a collection of variables that can be used to store related data. Structures can be used to pass data between blueprints, or to create custom variables that can be used in multiple places.
2. Data Tables: Data Tables are similar to Structures, but they allow you to store multiple instances of data in a table format. Data Tables can be used to store data that is common across multiple objects or to store data that can change over time.
3. Primary Data Assets: Primary Data Assets are a special type of data asset that can be created in Unreal Engine. These assets are designed to be used as the central source of data for a specific aspect of your project. This can be useful for things like game settings, player information, or weapon statistics.

**In conclusion, you should use Structures for simple, related data that is used in a limited context, use Data Tables for data that needs to be shared across multiple objects, and use Primary Data Assets for data that is the central source of information for a specific aspect of your project.**

---

<div class="post-metadata">

**Author:** ![zhuangbiiii](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zhuangbiiii/32/1188884_2.png) [@zhuangbiiii](https://forums.unrealengine.com/u/zhuangbiiii)\
**Post date:** [January 31, 2023, 1:39am UTC](https://forums.unrealengine.com/t/how-do-i-distinguish-between-datatable-and-primarydataasset/759514/3 "2023-01-31T01:39:20Z")

</div>

Thank you,Solved my doubts.
