2D Objects

AR Studio provides three 2D objects:

  1. Canvas - a container for the layout of 2D objects
  2. Rectangle - a 2D surface
  3. Text

Insert a 2D object by clicking Insert, then selecting the 2D object you need from the menu.

To adjust a 2D object's properties, click on the object in the Scene tab and then go to the Inspector Panel.

Canvas

A canvas is a container. Use it for laying out 2D objects and making them responsive to the size of a mobile device's screen.

It's inserted by default as the parent of rectangles and text objects that aren't inserted as the children of another object.

AR studio also provides a 2D object called a Legacy Canvas. It's better to use the Canvas instead.

Properties

Visible

Uncheck this box to stop the canvas or any children from being rendered in the scene.

Mode

User the dropdown to select whether the canvas is in either:

  1. Screen space - the size of the canvas will be fixed to fit the device.
  2. World space - the canvas can be transformed, for example rotated and resized. You should only add 3D objects under a canvas if it's in world space.

Size

Adjust the width and height of the canvas.

Transformations

Position

Change the position of the canvas.

Scale

Change the size of the canvas.

Rotation

Rotate the canvas.

Enable For

Choose the camera or cameras on a mobile device in which you want to render the canvas and its children.

Rectangle

A rectangle is a 2D surface. Rectangles are inserted below a valid parent object, or a new canvas.

Alignment

Alignment moves the rectangle around within the parent object. Rectangles can be aligned to the top, center, bottom, left and right.

Properties

Visible

Uncheck this box to stop the rectangle from being rendered in the scene.

Size

Adjust the width and height of the rectangle in the scene.

Flexibility

Using Flexibility will scale a rectangle's width and height proportionately to it's parent canvas - so if you double the size of the canvas, the rectangle will double in size too. This means rectangles will stay in proportion on all devices, if the parent canvas is in screen space.

Flexibility needs to be turned on. Do this by clicking the arrows next to Flexibility in the Inspector panel.

Pinning

Pinning a rectangle means it will maintain the same distance to its parent's border - however much you transform the parent.

Rectangles can be pinned to the top, bottom, left and right.

Transformations

Position

Change the rectangle's position.

Scale

Change the scale of the rectangle.

Rotation

Rotate the rectangle.

Material

Create a new material for the rectangle or apply an existing one.

Text

An object used to render text in the scene. Learn more