How to check what the previous loaded scene was?

Hello. it’s been some time since I went here. I would like to know how to check what the previous scene loaded was. like checking if previous scene was scene 4 or 5. please help.

just set a global variable to the current scene, when you about to change the scene.

if you need the last level Global variable as a number you can use ToString(GlobalVariableString(LastLevel)

3 Likes