I would like to change to something informative instead of the index number in the editor, how do I do this?
You can’t. You either need to use 3 variables, or a structure that is make of a name and a boolean.
Ty that worked. Just a explanation for anyone having the same doubt, he is talking about custom structure, you can create right clicking in editor > blueprints > structure. More details here Struct Variables in Blueprints | Unreal Engine Documentation
@ClockworkOcean and @Everynone , Epic better be paying you two a fee.
This official link doesn’t even work anymore; nor does it redirect. FFS.
You can make a struct which is ‘string → bool’ and then make an array of them. Or easier, make a map of them. Then you can use the name to look up the bool
You know, I’ve seen it before in the past, and I was like, “Don’t know what that is, and never gonna use it…”
Then I need something specific like this, and it turns out it’s exactly what I needed.
Epic →
→ You.
I’m using it as the only save game item actually.
I have a map from
Levelname, concept name, ID
to
Struct of basic useful stuff ( at the moment, just int and a bool ).
Turns out, that’s all you need. You don’t have to think of hundreds of variable names etc…
I can say ‘Mansion, door, 3’ → unlocked, or
‘Garden, beacon, 2’ → false, 4 ( off, but 4 is the color, always use an array offset when possible, much easier to check later ).