Best Practices to link 2 Data Tables?

Hello.
Is there any way I can link two Data Tables / Structures?

Let’s say I want to create a Structure for Items and Weapons

Instead of having a S_Item and DT_Items like this…

S_Item:
Text - Name
Texture2D - Icon
Bool - IsWeapon?
Float - Damage (only if IsWeapon? == true)

… I want to have an S_Item and S_Weapon and two seperate Data Tables that are linked together in some way. What would be the best way to implement something like this, since I can’t find any tutorial on this topic. In my opinion there are so many more features Unreal Engine could add to Data Tables, since they can be so useful :confused:

1 Like

Oh boy, agreed! Wholeheartedly, too.

link two Data Tables / Structures?

A struct can hold a Row Name you use to look up values in another Data Table.


Epic does not want you to know this :innocent: , but you can reference a DT in structs:

And then make another DT out of those; for the more complex scenarios.

1 Like

Thank you very much, how did I not know this???

1 Like