How to get last viewed scene name?


#1

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.


Get Scene Name on load and trigger external js functions
(π•„π•šπ•”π•™π•’π•–π• 𝔾𝕒𝕣𝕠𝕗𝕒𝕝𝕠) #2

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

Here


#7

Thanks, Michael,

That worked perfectly.