In Spark AR Studio, the canvas is an object that will scale up or down with the size of a device screen.
2D objects, like rectangles or text, will always be children of a canvas. This means they'll scale in sync with the screen of the device.
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 lay out 2D objects like rectangles, to make 2D effects like frames and colored filters that scale up or down with the screen of the device.
To use a canvas in screen space, set the Mode to Screen space in the Inspector panel.
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. If someone uses an effect with objects in world space, the object will only be visible through the camera on the back of the device.
If 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 panel.
You can 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.
Uncheck this box to stop the canvas or any children from being rendered in the scene.
User 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.