DataTableRowHandle to Get Data table row: Only literal data table is supported
I'm trying to connect data table ref pin from DataTableRowHandle to Get Data Table Row, like the following picture shows.
But it says "Only literal data table is supported" and I can't connect the pin.
I tried both UE 4.6.1 and 4.7 preview 6 and the result is the same.
Is there something I did wrong or UE4 just doesn't support this?
Appreciate any help, thanks. :)
I've found a workaround to this issue.
I found these codes from answer hub a while ago, I can't find original post though, so I just post it here.
And I've made some modifications to it to prevent some crash issue.
Create a C++ blueprint function library and add these codes:
FEnemyFireStruct is my custom struct, you can replace with your own struct.
Then you can create a data table handle in blueprint, assign data table to it.
By using this way you can have multiple child share one common parent with same code base and can still assign different data table value to different child.
This isn't entirely beautiful because you have to create a new function for each struct you want to use, but this is the only option I found workable currently.
answered Jun 24 '15 at 06:22 AM
"By design" seems like a poor decision on this one. I am using data tables to define dozens of settings for various weapons, and based on player purchase choices, I need to select the correct table. This info now needs to be replicated for every weapon because I can't promote the get data table input to a variable.
answered Aug 15 '16 at 11:02 PM
I did a bit more testing. the reason it is giving you this is because the input is looking for the full data table to call from, not just an individual component. The "Break DataTableRowHandle" takes specific data from within a data table and breaks it down into smaller components, instead of keeping the data table intact. If you click the dropdown menu under "Data Table" you should be able to get access to the full Data Tables you have available to you.
answered Feb 13 '15 at 04:22 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here