I’d like to know how to…
On Scene Load - Detect Scene Name - And run a function in external JS file based on a specific scene name. For example if scene name was keyMessage2 then trigger a function that shows or hides elements.
Or it detects an id name on the page. Say for instance a jpg has an ID of keyMessage2 and if on load it detects the jpg is on or there it runs a function in external JS file.
Rough on code… Could you give a hype doc or detailed code?
I can set individual functions in hype to run on scene load but want a range of about 80 functions to be in one external JS file.
Each scene will be exported as individual folders.