I have a datatable with an enum. I can only select the top enum entries, if I scroll to the bottom of the entry list and select those ones it always selects the first enum in the list, if I use arrow keys to navigate to the specific entry I want so it is highlighted yellow the enum still selects from the top, and I can’t find any keyboard button to actually select an enum in the data table editor, mouse only.
I manually exported the datatable and manually set the entries. Upon re-import it actually reset them to the first entries in descending order. What the h_ell.
Probably 255 (because of bitmasks maybe?). That’d make sense, sort of. But how are you even going to use it? Choosing something from a list of 30 items is already annoying. 300 would make it so much worse. Esssentially, enumerators are not meant to be used like that.
Imagine hooking up a Select node or Switch to a 300 element long enum. Not only would that be exceptionally awkward to use but also quite inefficient due to lack of close circuit evaluation in the engine. And likely to come crashing down.
You may need to use names instead or rethink the approach.
I use the enums to get a random value from it. I am using names though, it’s an enum holding the list of possible names for generated characters. Then I just get a random entry out of it.
So enums have an arbitrary limit of 255? I wonder why? It doesn’t tell you anywhere kinda sucks that I have to do an odd workaround but whatever I guess.
But why? I ended up splitting my enum into two separate ones so it ain’t a big deal but that’s such an odd number for a cap and it never says anything anywhere warning you.
I have to do an odd workaround but
whatever I guess.
What I meant to say but didn’t was that you’re attempting to use a data type for something it’s not meant to do. It’s like using a float to count the of number characters in your party. Can you do it? Sure! Would it work better with an int? Yes!
it’s an enum holding the list of
possible names for generated
characters
Why not use an array or names, a map, a set (or even a data table of structs) - one of the containers designed to hold such data.
Have a look at how enumeration meshes with Select and Switches and see that having something longer than a couple of dozen of options will rarely make sense.
Wanna see people aimlessly disagree about enumeration, have a look here :
I think it may have to do with the enum size? Their are 286 entries and when I select the final 30 or so in the data table it selects “down” the list but from the top. So I made 2 enums with 143 entries each and it works fine but now I need two different data tables which is an annoying fix.
They are all just names so no special characters or anything.
works just fine with absolutely 0 lag, and believe it or not, but I’m not using a switch. As I said already; I’m just pulling a random value out of it. Thanks for your time