How do I rename a boolean array element to the editor UI?

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.

1 Like

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.

1 Like

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 :slight_smile:

1 Like

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 → :dollar: :dollar: → You.

1 Like

:+1: :sweat_smile:

1 Like

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… :slight_smile:

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 ).

1 Like