Unable to link enum to string table

I’m hoping this isn’t a bug and there’s just something I’m missing. I’m working on a dynamic menu system that will provide the ability to create a menu that contains a list of items that are in the players inventory. I do this by looping through the items, which are stored with two enums, in an array as part of an “Inventory” Blueprint. To get the text of each item I have linked the items to a String table - i.e. The “Display Name” for my enums comes from the String Table.

The problem I am having is that I can’t link all of my enums to values in the String Table. Having created all of my items, I drop down the menu next to each item and select the String table. When it works the drop down closes and I have to open it again to select the specific string I want. However it appears it has gotten to a point where it just doesn’t work any more. So my “ObjectSubClass” looks like this:

265299-enum-1.jpg

I am unable to successfully select values from the string table for “Bow”, “Sword”, “Dirk”, “Mace” or “Wand”.

I also have another enum which is the “ObjectClass”. With that I created a second String table, and I was only able to select a single value (Key). I couldn’t select any of the remaining values.

To make this even stranger I found that in the ObjectSubClass enum I could select the String table I wanted to use with the “ObjectClass” - and vice-versa. Which was somewhat disconcerting as the “Unlink” button doesn’t work, and being unable to change to the correct String table I could only repair the damage done through the “Undo” functionality…

Unltimately what I’m trying to do is link my inventory system and the menu system to end up with something like this:

However the ability to link an enum to a String Table doesn’t appear to work. Is there something I’m missing or is this a bug?

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks

@pookemon Hi there – it has been a while but I am having the same issue as you - and it seems this post is the only one with this specific problem. Did you happen to find the cause or even better, a solution for this?

I’ve just encountered the same issue with UE5, and have figured out what causes it.

When a String Table is selected, the second dropdown is automatically populated with the ‘default’ item from the String Table. But because an enumeration must have UNIQUE values, if that value has already been assigned to a different row in the enum, the editor won’t pick a different value for this second dropdown - it just prevents you picking the String Table for (seemingly) no reason.

Therefore, you must avoid assigning the ‘default’ value in a String Table to an enumeration if you wish to continue editing that enumeration - either by assigning it last, or by having a dummy ‘default’ value in the String Table which will never be used as part of the enum.

Note that the ‘default’ value is not always the one at the top of the list (which is sorted with the Keys in alphabetical order) but the item that was created first. You can see this order when exporting to CSV - and you can use the CSV to reorder the rows (so your default is at the top), and then re-import.

Apologies for dragging this issue from the past, but I figured it would be nice to have an answer at the bottom.

2 Likes