# Best way to efficiently toggle visibility of multiple stage selection buttons based on SaveGame data?

**URL:** <https://forums.unrealengine.com/t/best-way-to-efficiently-toggle-visibility-of-multiple-stage-selection-buttons-based-on-savegame-data/2724265>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [May 25, 2026, 10:44am UTC](https://forums.unrealengine.com/t/best-way-to-efficiently-toggle-visibility-of-multiple-stage-selection-buttons-based-on-savegame-data/2724265 "2026-05-25T10:44:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![e7de84f7c71249dc8a21a7d1f05899f3](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/e7de84f7c71249dc8a21a7d1f05899f3/32/1063469_2.png) [@e7de84f7c71249dc8a21a7d1f05899f3](https://forums.unrealengine.com/u/e7de84f7c71249dc8a21a7d1f05899f3)\
**Post date:** [May 25, 2026, 10:44am UTC](https://forums.unrealengine.com/t/best-way-to-efficiently-toggle-visibility-of-multiple-stage-selection-buttons-based-on-savegame-data/2724265/1 "2026-05-25T10:44:30Z")

</div>

Hi everyone,

I am currently making a stage selection screen in Unreal Engine. I want to dynamically reveal stage buttons as the player progresses through the game.

Right now, I am planning to save variables like “Stage1\_Opened”, “Stage2\_Opened”, etc., in my **BPSaveGame** , load them on the stage select screen, and change the visibility of each button based on those variables.

However, I have 9 stages in total. If Stage 9 is unlocked, connecting 9 different button variables to a single **Set Visibility** node feels very inefficient, cluttered, and prone to bugs.

Is there a cleaner, more scalable way to handle this? For example, using Arrays or Loops? Any screenshots or Blueprint logic examples would be greatly appreciated!

Thank you in advance!

 ![スクリーンショット 2026-05-25 193729](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/2/ba29880278c697a0579ae037176691233a1d6371.png)

 ![スクリーンショット 2026-05-25 193716](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/a/79a5c97bbc0e3fc71ce54a7eb7d5bb351b3d6323.png)

---

<div class="post-metadata">

**Author:** ![mteles-kokku](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mteles-kokku/32/1185846_2.png) [@mteles-kokku](https://forums.unrealengine.com/u/mteles-kokku)\
**Post date:** [May 25, 2026, 1:06pm UTC](https://forums.unrealengine.com/t/best-way-to-efficiently-toggle-visibility-of-multiple-stage-selection-buttons-based-on-savegame-data/2724265/2 "2026-05-25T13:06:31Z")

</div>

Hello!

I think using Bitmask Flags is not an ideal approach, because you’ll have to manually add more buttons and more items to the enum if you ever add a new stage.  
But if you prefer it, I suggest you use a Map of Widgets to Enum values, and loop through that map:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/f/63f827b6b7b0f5549cd30dd80d942386e9f71f17.png)

But if you’re ok with a different approach, I suggest making your save data store an Array of Names, each representing a Stage. Then you make a custom Widget representing your stage select button, with a variable for the stage it represents. Finally, when you create your menu, you can dynamically generate the buttons and put them in a container (such as a VerticalBox, a GridPanel, etc.) like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/6/626d030de63db11b02ed768b6887326e06f04f03.png)

---

<div class="post-metadata">

**Author:** ![DorrealArt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dorrealart/32/1211568_2.png) [@DorrealArt](https://forums.unrealengine.com/u/DorrealArt)\
**Post date:** [May 26, 2026, 12:56am UTC](https://forums.unrealengine.com/t/best-way-to-efficiently-toggle-visibility-of-multiple-stage-selection-buttons-based-on-savegame-data/2724265/3 "2026-05-26T00:56:54Z")

</div>

Hi,

Building on the approaches mentioned above, a more scalable approach is to avoid separate variables like “Stage1\_Opened”, “Stage2\_Opened”, etc., and instead store progression in a variable.

For a linear progression system, a single integer such as “HighestUnlockedStage”:

You can create an array containing all your stage buttons, then run a For Loop through the array and compare the loop index against your highest unlocked stage value.

If the index is lower or equal, set the button visible. Otherwise hide it.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/9/7996e2adea7b4d1b5d450c0d131a27eeb16fc8c5.png)

For non-linear progression, you can instead use a boolean array to check unlocked stages:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/8/2382dcfb73a454fa65d74b53d83ec8a7641f0ebc.png)

---

<div class="post-metadata">

**Author:** ![e7de84f7c71249dc8a21a7d1f05899f3](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/e7de84f7c71249dc8a21a7d1f05899f3/32/1063469_2.png) [@e7de84f7c71249dc8a21a7d1f05899f3](https://forums.unrealengine.com/u/e7de84f7c71249dc8a21a7d1f05899f3)\
**Post date:** [May 26, 2026, 3:40am UTC](https://forums.unrealengine.com/t/best-way-to-efficiently-toggle-visibility-of-multiple-stage-selection-buttons-based-on-savegame-data/2724265/4 "2026-05-26T03:40:45Z")

</div>

> [@e7de84f7c71249dc8a21a7d1f05899f3](#):
>
> Hi everyone,
> 
> I am currently making a stage selection screen in Unreal Engine. I want to dynamically reveal stage buttons as the player progresses through the game.
> 
> Right now, I am planning to save variables like “Stage1\_Opened”, “Stage2\_Opened”, etc., in my **BPSaveGame** , load them on the stage select screen, and change the visibility of each button based on those variables.
> 
> However, I have 9 stages in total. If Stage 9 is unlocked, connecting 9 different button variables to a single **Set Visibility** node feels very inefficient, cluttered, and prone to bugs.
> 
> Is there a cleaner, more scalable way to handle this? For example, using Arrays or Loops? Any screenshots or Blueprint logic examples would be greatly appreciated!
> 
> Thank you in advance!

 ![スクリーンショット 2026-05-26 123722](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/4/2944d5a1968226349c6ad9bbba7346216b5d9397.png)Thank you so much. Since the progression is linear, using an Integer instead of a Byte for the Stage variable makes a lot of sense. I learned something new!

Also, I have 9 buttons in total, and I successfully completed the setup by placing the first stage button into the index 0 pin of the Make Array node.

* * *
