# Get all UDataTable in Folder

**URL:** <https://forums.unrealengine.com/t/get-all-udatatable-in-folder/1140701>\
**Category:** C++\
**Tags:** asset-pointer, unreal-engine, question, CPP\
**Created:** [April 25, 2023, 3:47pm UTC](https://forums.unrealengine.com/t/get-all-udatatable-in-folder/1140701 "2023-04-25T15:47:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [April 25, 2023, 3:47pm UTC](https://forums.unrealengine.com/t/get-all-udatatable-in-folder/1140701/1 "2023-04-25T15:47:38Z")

</div>

Hi there…

Situation:  
Currently i load every DataTable in my  
`Game/99_Datas/`  
Folder hardcoded by hand and store them in a UDataTable variable, via my Construct function of my ActorComponent class.

My Question now is:  
Is there a way to load ALL UDataTable in the Folder and add them to an array?  
Cause i couldn’t find anything similar to a

```auto
TArray<UDataTable*> GetAllAssetsOfType<UDataTable*>(FString Path)

```
