Call a function on button click

index.zip (4.1 KB
i am call the fetchApi function which is created inside the createscene funtion and i want to call that funton when i click that button how to access that


@moko_maracucho @Jedi master

Mabe this small tutorial about button onclick will help - onclick Event
Try to use oversimple function (like console.log) first to check how it works for you, and don’t forget to see console messages. I am not sure that your fetchAPI function can work at all.