CLEAR

Testing and Debugging

There are 2 ways to test and debug your projects in Spark AR Studio:

  • Console logging.
  • The Spark AR Player App.

Console Logging

You can use the Console in Spark AR Studio to display values of variables from the script you've added to your project.

This is done with the log(data) method of the Diagnostics. module.

Log statements are script instructions that only work in AR Studio. Since they are script statements, if they are included in your shipped effect, the script processor will try to execute them and no action will be taken. This can have a negative effect on performance so remove all Diagnostics.log() calls from your scripts before shipping your final effect.

Showing and hiding the Console

To show or hide the Console:

  1. Click View in the menu bar.
  2. Select Show Console or Hide Console from the menu.

The Console will appear below the Viewport.

Running and stopping scripts

To run the script in your scene, click Run in the Toolbar. To stop it, click Stop.

Spark AR Player

Once you're ready to test your project on a mobile device, you can use the Spark AR Player app. The app is available on both iOS and android mobile devices. To use it, you'll need:

  • A mobile device with the app installed.
  • A USB cable.
  • A saved AR Studio project.

Download