- UDataTable * UUlyssesBPFunctions::LoadTableByPath(FName Path, bool& result)
- {
- result = false;
- if (Path == NAME_None) return NULL;
- UDataTable* LoadedTable =
- Cast<UDataTable>(StaticLoadObject(UDataTable::StaticClass(), NULL, *Path.ToString()));
- return LoadedTable;
- }
UDataTable* LoadedTable =
Cast<UDataTable>(StaticLoadObject(UDataTable::StaticClass(), NULL, *Path.ToString()));
Example Path :
UDataTable* LoadedTable =
Cast<UDataTable>(StaticLoadObject(UDataTable::StaticClass(), NULL, TEXT("DataTable '/Game/Data/ItemDB.ItemDB'")));