There are 2 ways to test and debug your projects in Spark AR Studio:
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.
To show or hide the Console:
The Console will appear below the Viewport.
To run the script in your scene, click Run in the Toolbar. To stop it, click Stop.
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: