Download

Data Table Blueprint Function Library

Hi all!

I wanted to share some of our blueprint table functions with the community. As with anything not supported by Epic, use at your own risk.

The C++ blueprint function library is attached.

Data Table as a Blueprint Variable

Epic claimed this functionality will be available without engine modification in 4.15:
https://issues.unrealengine.com/issue/UE-23282

If you are compiling the engine, I recommend tagging UDataTable as BlueprintType so that you can use tables as blueprint variables.

DataTable.h:



UCLASS(MinimalAPI)
class UDataTable


To:



UCLASS(MinimalAPI, BlueprintType)
class UDataTable


This engine change is not required for any of the attached functions.

Get Data Table Index Of Row

78d64da655900966c716d9d9b29ff99cfc4946e6.png

Given a DataTableRowHandle (table + row name), return the row index within the table.

Get Data Table Row By Index Wildcard

GetDataTableRowByIndexWildcard.png

Given a table and a row index, return the data of that table row.

Get Data Table Row By Name Wildcard

GetDataTableRowByNameWildcard.png

Given a table and a row name, return the data of that table row.

Get Data Table Row Count

GetDataTableRowCount.png

Given a table, return the number of rows.

Get Data Table Row Wildcard

1af53e5420f4dc5d7b5533cbfd8ade0f6019e0ae.png

Given a DataTableRowHandle (table + row name), return the data of that table row.

Notes

For all the functions with bool Return Value, Return Value will be false if the input parameters are invalid.

For the “Wildcard” functions, the Row output must be connected or the blueprint will not compile, and whatever struct the Row output is connected to will determine it’s type. Table row struct inheritance is supported if you are doing that in C++.

Installation

You will have to change the API to your module name. E.g. POUNDSAND_API to MYGAME_API

You will have to change the first cpp include to your module include. E.g. #include “PoundSand.h” to #include “MyGame.h”

Enjoy!

Torin Kampa
http://www.poundsand.com/

This is great, thanks for sharing!

“Wildcard” ,amazing!

this not works in 4.20 , can u fix this ? thx anyway !