Create a 'Back' button to transition to the last-visited scene

The back button is a Symbol. Go into the Symbol and select the button.

Here is a solution using the History interface of the browser. It could also support history state variables (only uses for currentScene for now). The scene name is also put in an escaped form into the browser URL (allowing hard page refreshes and deeplinks). If you don't want that, you can disable it.

1 Like

Hi @Daniel!
I was exactly looking for this function but I'm trying it in my document and it doesn't work. Maybe I am missing something? I'd be very grateful if you cold take a look. I attach a sample of my document. Thanks!

Mapa_IA_copiaHype.hype.zip (189.7 KB)

Only set/call unload on scenes you want to remember.
Fixed the data store location… since Hype 4 its hypeDocument.customData.
Mapa_IA_copiaHype_max.hype.zip (233,1 KB)

3 Likes

Oooh now I get it!!
Thank you @MaxZieb, you saved my life.

2 Likes