Enum to Data Table name (construction script)?

Enum to Data Table name in construction script won’t work?

Hey there @espr3ss0! Enum to string should work fine inside of the construction script. May I see your BP?

Hrm, that should be working if the text is correct, my test here worked out, this test will determine if something is wrong naming wise or in the struct.

Check the Output Log after construction and see if it gets the right name and then the right info out of the struct.

1 Like

I have and yes it does. :frowning:

Wait, it gets the correct row name? Is it outputting row not found or row found? If it can’t find the row, it might be case sensitive issue there. Double check the enum’s naming and the row in the data table, have them both print out in log and compare them side by side just to verify. If they are 100% the same and it’s still not getting the row, something else may be a problem.

If it is getting the row but the Menu texture won’t set it’s likely that the struct setup is at fault. I see it’s an object reference of some sort, what’s the data type it’s intended to pass? We may have to doublecheck that data is set correctly in the data table and run an IsValid on it when we pull it out.

In case anyone else encounters a problem with this, I was having trouble using the enum to data table name inside the construction script, but it was because I was NOT using the Enum to string node first… I tried to use Enum to name directly, and it didn’t work… so, from enum, call Enum to string, and then the result of that goes into the purple Row name from the get data table row node. Thanks @SupportiveEntity !

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.