title: How to create and use buttons in Spark AR (for Facebook)?
body: <p>I'm working on a simple AR effect for Facebook in <a href="https://www.sparkar.com/ar-studio/" rel="nofollow noreferrer">Spark AR studio</a> using JavaScript. I have two 3D objects in the scene and I want to switch between them on button click.</p>
  <p>So, for example, I have two buttons, and when I click on the first button I want to show the first 3D object (and hide another one). And vice versa - when I click on the second button I want to show the second 3D object and hide the first one.</p>
  <p>I can see some examples of how can I access the object in the scene through the script, but I didn't find yet an example of <strong>how to create or use buttons in Spark AR</strong>.</p>
  <p>Is there any easy &quot;drag-and-drop&quot; way to create a button and assign a function to it (like in Unity)? Or should I create an image of the button on the canvas in the scene, use JavaScript to &quot;find&quot; it, detect if the finger touch was made over this image and trigger a function this way?</p>