I have a created a “onclick” button with html. When i click on it, i want to load a different scene.
How can i do this?
Are you asking how to load a new scene or how to execute canvas code from html button?
how to execute canvas code from html button
try to follow these tutorials. They should help you:
https://developer.playcanvas.com/en/tutorials/?tags=html
Sorry the link wasn’t working. I fixed it.
1 Like
I would like to ask also, when i load the new scene i want the button to disappear.Is there any way to do this ?
Thanks
you have to remove the dom node of the button, or set a css style like display: none