How to get hold of DataTable struct from another DataTable's row

Hi to everyone! I have a question: Currently I am working on a Items and Inventory mechanic. I have a main parent class for all my items BP_ItemBase , which has its DT_ItemBaseInfo data table, which contains rows with different item’s types (such as weapons, ammo, consumables, armor etc.) and also each row includes data table for each of these child item classes. How to get a hold of these data tables from my main data table In native UE ? You cannot use it in dynamic way and instead of struct output you get struct output of no type until you manually determine which struct output type you want to use after. I know that there is a plugin for that kind of issue, but I am sure that that kind of task is pretty regular for gamedev so there is should be a way how you do it in Unreal that I just don’t know about. Also, if you know tutorials relative to that topic, please share. Big thanks in forward !

Hey @LAGZOR!

I’m not sure that you can access a DT within a DT like that, but what you CAN do is probably use a DA(DataAsset) with its location as one of the items in the row.

That in itself COULD get a little complicated, I think the best thing to do would be just move the details into the first DT. If it’s a struct within the DT you can spread it out across the row.

Maybe split the main DT into a few separate ones? Then use some if statements or a “Switch on Enum” with each item having that Enum set to the type of item it is, then if it’s Weapon, use “Weapon DT, get row,” and etcetera for the rest of the types?

Hope this helps!