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.
In Spark AR Studio, the canvas is an object that will scale up or down with the size of a device screen.
Find out about:
To add a canvas:
It'll be listed as canvas0 in the Scene panel. When it's selected, you'll see a blue outline of the canvas in the Viewport:
The canvas will be in screen space by default. In screen space, the size and shape of the canvas is fixed to fit the screen of the device. You can't change its size, scale or rotation, because they'll always match the device screen.
A canvas in screen space can be used to position 2D objects like rectangles to make 2D effects like frames and colored filters.
To use a canvas in screen space, set the Mode to Screen space in the Inspector.
Build an effect with a canvas in screen space in this tutorial.
When a canvas is in world space, you can use it to position a 2D or 3D object. The object will only be visible through the camera on the back of the device.
In world space the size of the canvas will no longer be determined by the size of the device screen. You'll be able to adjust this property in the Inspector.
To use a canvas in world space, set the Mode to World space in the Inspector.
Follow this tutorial to build an effect using the canvas in world space.
Adjust these properties in the Inspector to edit the canvas in your scene. Clicking the circle symbol next to a property will create a patch to represent it in the Patch Editor.
Uncheck this box to stop the canvas or any children from being rendered in the scene.
Use the dropdown to select whether the canvas is in either:
Adjust the width and height of the canvas, if it's in world space.
Change the position, scale or rotation of the canvas, if it's in world space.
Choose the camera or cameras on a mobile device in which you want to render the canvas and its children.