How to get last viewed scene name?



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.

Get Scene Name on load and trigger external js functions

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.

(Mark Hunte) #3

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

(strmiska) #4

you can check this:

(Mark Hunte) #5

You still need to workout what that scene was…

(Mark Hunte) #6



Thanks, Michael,

That worked perfectly.