Use the Object Tap patch in Spark AR Studio to make something happen in your effect when someone taps a specific object.
In this guide, we'll make an object get bigger when someone taps directly on it:
You could use other screen interaction patches to achieve similar effects, like Screen Tap or Screen Pan.
To create an Object Tap patch:
Two patches will be created:
Next create a patch representing the property of the object you want to change. For this example:
You could choose a different property instead. For example, Position to move the object to a different position or Visible to make it disappear.
Right-click in the Patch Editor and select:
You’ll see 6 patches in the Patch Editor:
Connect the patches, so your graph looks like this:
In the Transition patch, adjust the values next to Start and End to set the starting and ending scale of your object. We set:
Make an effect respond to taps on a device screen.
Spin 3D objects in response to raised eyebrows.