Clear
Back

As a result of the coronavirus (COVID-19) outbreak, we have a reduced capacity to review effects and delays in publishing are expected. Learn more.

Logic Patches

Use Logic patches to define the conditions needed for something to happen in an effect. For example, you can use logic to trigger an animation to play when the user interacts with the device in a particular way or after an effect runs for a certain number of seconds.

Available Logic Patches

PatchDescription

And

Make something happen when two conditions are met at the same time like the user’s mouth being open and eyebrows raised.

Equals

Make something happen when the value coming from the input patch is within a close range or around a certain number. For example, if you want the user to face roughly a certain point on an axis to make something happen.

Equals Exactly

Make something happen when the value coming from the input patch is an exact number.

Greater Than

Make something happen when the value coming from the input patch is greater than a preset value.

Greater or Equal

Make something happen when the value coming from the input patch is greater than or equal to a preset value.

If Then Else

Switch between two states in response to something depending on the data type selected.

Less Or Equal

Make something happen when the value coming from the input patch is less than or equal to a preset value.

Less Than

Make something happen when the value coming from the input patch is less than a preset value.

Not

Reverse the output of a connected patch.

Or

Make something happen when one of two conditions are met like a tap or a long press on the device screen.

Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

Join Community

Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

Join Community

Frequently asked questions

Have a specific question? Maybe it's been answered.


Read FAQs
Was this document helpful?