A-frame object onclick function

Viewed 276

I have an object in my scene and I would like it so that when I click on the object, a function called myFunction occurs. How can this be done? I have also assigned an id of #plane1 to my object in case that could help with the function. How can I have it so when I click on the object #plane1, a function called myFunction occurs?

1 Answers
Related