Want to hide button when last level is completed

The button that I am looking to hide is the next level button and I want it hidden when the last level is completed.

I have 3 levels, the button uses an array to figure out what level it needs to open next but level 3 is the last level. Due to this I want to hide the button once the player has completed the 3rd level. Below is the current blueprint for the widget.

If this is not possible then would I need to create another widget entirely and if so how would I go about getting that widget to appear only after the 3rd level is complete instead of the one that would appear for the other levels.

Before showing the “Next Level” button, check if the current array index >= Last Index of the array of Lvls. If so, don’t show button, else show.

1 Like

Thank you for your help it is very much appreciated. For those who may want to see what I did please see the image below.

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