Let us organize structure child variables

Feature idea :
Very simple, currently it’s not possible to organize the order in which the child variables of a structure are displayed in the editor (both for scene/global and object structure variables) as they are forced in an alphabetical order. It would be nice to be able to arrange variables in the list however we want the same way we can with all other variables.

Why this feature ?
I feel like this one is obvious, but it would be coherent with how the other variables work in the editor and it would be extremely convienient for any dev who has a structure variable with many children.

19 Likes

very useful for dynamic lists

1 Like

I totally agree with OP.
They are currently always sorted alphabetically so if you change the name it switches to a new position, so it’s not that the order is immutable and the Editor can already handle reordering of the elements (child variables) - just not the order that I (we) want.

3 Likes

I agree. It can be easier to setup a bunch of structures if the children are arranged in a specific logical order. GD should keep them as added and allow the drag and drop.

You might want

Name
HP

Name
HP

But you get

HP
Name

HP
Name

It’s easier to find a specific child by looking at the first child’s value.

3 Likes

I remember someone already asked this when the new vars system was released… Not sure what happened after that, though. Oh wait I think this is that thread. I just noticed the date.

1 Like

17 Hearts and it hasn’t been added yet?

This would be super useful! :smile:

2 Likes