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:
You could experiment with changing the Curve option in the Transition patch, to change the shape of the movement. Or, change the speed by editing the Duration value in the Loop Animation patch.