How to get last viewed scene name?

Hello,

Can anyone tell me how to get the last viewed scene name within Javascript?
I want to jump around between scenes using a back button.

For example: I have five scenes: A, B, C, D, E.

I jump to B from A. I then return to A. I jump to E from C and the return to E.

Thanks for your help.

You could save the name of the scene in a variable, and then use that value in the Hype API to load that specific scene.

If you search the site you will find examples of how to do this

you can check this:

You still need to workout what that scene was…

Here

Thanks, Michael,

That worked perfectly.

1 Like