Unreal Engine/Unreal Engine

[Unreal Engine] DataAsset vs DataTable

CodeHunst 2024. 8. 20. 19:01

 

Data Assets

* Filled with internal data types

    - Filled through the editor

* Great for smaller Pieces of information

    - Handles hierarchies and displays nested information well

Ideal for smaller pieces of information

    - Intended for single items but easily expanded

* Smaller sets of information mean faster loading

 

Case Examples:

- Single Pieces of Information ( Enemy A, Enemy B ...) 

- Small Groups (Enemies[], Weapons[], Potions[]...)

 

DataTables 

* Able to utilise data files such as CSV and JSON

    - Can be filled using these external files

    - Also able to be filled internally through the editor

* Great for large amounts of simple data like language packs

* More difficult to work with nested  information

* Easy to search for desired information

* Potentially longer loading times  ( 필요한 정보 조각만이 아니라 거대한 데이터 전체를 로딩함)


Use  Case Examples:

- Dialogue/Quest Systems

- Language Sheets

- Settings

 

+ Data Curves

Data Curves는 DataTables와 다소 비슷한 방식으로 작동하지만 부동 소수점 유형만 지원

 

Use  Case Examples:

- Levelling and Progression System

 

 

[참고]

https://dev.epicgames.com/community/learning/tutorials/Z13/unreal-engine-dataassets-vs-datatables

https://dev.epicgames.com/community/learning/tutorials/dL9w/unreal-engine-e9e19a

https://forums.unrealengine.com/t/datatable-vs-udataasset-for-storing-large-amount-of-static-data/111622