Download

GetTableData not available on packaged runtime

hi,

I use getTableData from UDAtaTable at runtime:

void ARuleTable_Actor::InitFromDataTable(UDataTable *source)
{
RowData.Empty();
ColHeader.Empty();

// set col
if (source->GetTableData().Num() > 0)
	nbCol = source->GetTableData()[0].Num();
else
	return; // probleme 

but it’s not working when packaging my game.
I found why on this post
https://answers.unrealengine.com/questions/252032/unconcisten-building-when-packaging-game.html

but how to access tabledata at runtime ?

thanks

no idea ? I’m stuck

UDataTable has propery named RowMap, which is a TMap of serialized structs. Looks like it may have enough data to fulfill your needs.