Does index in Map's automatically adjust indexes?

Let say I created a map (Variable) in Blueprint and it has 4 entity if I remove the first one (index 0) does the index 1 automatically lowers itself to 0?

Remove Index

The Remove Index node removes an item within the array via that item’s index number. All remaining index numbers will update to close the gap.

As short answer Yes.

If you don’t want simply you can add a nullptr variable or similar to keep indexes in order. Like you can assign -1 to int array to distinguish its state.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.