Extract GotoScene Name from a button?


(Laurent) #1

Hello,

Is it possible to extract the goto scene name from a button.
I want to automatically assign the name scene to the id of an element.

Thanks in advance.


(Loves Hype) #2

On a click handler set to JS you get “element” pointing to the button element as parameter to the callback function. Meaning element.id is the ID you assign to the button.


(Laurent) #3

Thanks, I’l try this :+1: