Next Level Button

So i want a button that will have all my levels in something like an array and you finish the level and you get the end screen. Then you click the button and it takes you to the next level on the list. So if you’re on level 3 and click next level it will load up level 4 ect. How can i do this? I havent been able to see any reference or anything to something like this.

BP console command open level? https://www.youtube.com/watch?v=N_q8jTs8gU0

Hi man,
a way to keep track of your game and the level you are and variables in general is store them in the game_instance
here a tutorial on what it is HTF do I? Use the GameInstance Object in Unreal Engine 4 - YouTube
and an answer about passing variables between levels https://answers.unrealengine.com/questions/548875/pass-variable-between-main-menu-and-levels.html

You can also avoid to use them
making an array of names, the names must be exactly the names of your levels.
Then with a loop, search for the current level name in the list, and get the next one .
In this example i am in the level number 4,
so the loop check if the name is == to number 1, numbeer 2,…3…4 and then get a reference to the array with a +1 of the precedent search.
So he print , The next level is Level number 5

Thank you, That is exactly what i was trying to do :smiley: