# Objects

Source: https://docs.lightair.app/desktop/build-your-show/objects

> Add cameras, screens, media, text and widgets to a scene with Add Object, arrange them in the Hierarchy, and set them in the Inspector.

In short:
- Click **+** in the **Hierarchy** to open **Add Object**, pick a type, and it's added to the selected scene.
- The Hierarchy lists the front object first. Drag rows to reorder them or put one inside another.
- Group objects with `⌘G` or `Ctrl+G` on Windows. A group moves, turns and scales everything in it.

In the app: Hierarchy › Add object; Hierarchy › Create empty; Inspector; Object › New Empty

Everything you see in a scene is an object: a camera, a screen capture, a picture, a line of text,
a chat box. Objects are listed in the **Hierarchy** and set in the **Inspector**.

An object shows a source, such as your webcam or a display. A source is opened once, however many
scenes show it, so the same camera can sit in ten scenes at ten different sizes. Changing a
source's settings (which camera, which window) changes it everywhere it's used.

## Add an object

1. Select the scene to add to in the **Scenes** panel.
2. Click **+** (**Add object**) at the top of the **Hierarchy**, or right-click empty space in the
   Hierarchy or on the canvas and choose **Add object…**.
3. Pick a group in the rail on the left, or type in **Search objects and widgets**.
4. Click a type, or move to it with the arrow keys and press `↩` or `Enter` on Windows.

Some types ask one more thing in the same sheet: which camera, which display or window, a web
page's address. `⎋` or `Esc` on Windows closes the sheet. The sheet shows which scene the object is added
to.

The new object is placed in the middle of every canvas, scaled down to fit if it's larger, and
selected. A source with its own sound (a browser page, a phone camera, an iPhone's screen) also
gets a strip in the [mixer](/desktop/audio/mixer).

### The groups

| Group | Types |
|---|---|
| **Capture** | **Camera**, **Display**, **Window**, **App**, **Browser**, **iPhone or iPad**, **Phone camera**, **Avatar**, **AI co-host**, **Syphon**, **NDI**, **Another computer**, **Camera over USB** |
| **Media** | **Image**, **Video** |
| **Graphics** | **Text**, **Colour**, **Timer** |
| **Widgets** | Lightair's widgets by purpose (**Alerts and events**, **Chat**, **Goals and timers**, **Viewers play**, **On screen**, **Info**), widgets from installed packages, and **Import a widget** |

**All** lists every type under its group's heading. Each capture type is described in
[Captures](/desktop/build-your-show/captures); media, text, colour, timers and browser pages in
[Media, text and graphics](/desktop/build-your-show/media-text-and-graphics); widgets in
[Widgets](/desktop/chat-and-widgets/widgets); avatars in [Avatars](/desktop/build-your-show/avatars).

The **Object** menu adds the common types directly: **Add Image…**, **Add Video…**, **Add
Avatar…**, **Add Text**, **Add Colour**, **Add Timer** and **New Empty**.

### Drag files in

Drag pictures, videos or avatar models from Finder or Explorer onto the canvas, a Hierarchy row
or the **Assets** panel. Lightair copies them into the workspace's assets folder and places them
in one undoable step. A file it can't use is named in the status bar and left out.

## The Hierarchy

The **Hierarchy** lists the selected scene's objects as a tree. The object at the top of the list
is drawn in front of the ones below it.

- **Select**: click a row. `⌘` or `Ctrl` on Windows-click adds or removes a row; `⇧` or `Shift` on Windows-click
  selects every row between the last one picked and this one.
- **Rename**: double-click a row, or select it and press `↩` or `Enter` on Windows.
- **Reorder**: drag a row. Drop it on the top or bottom edge of another row to place it in front
  of or behind that row; drop it in the middle to put it inside.
- **Show or hide**: click the eye on the row (`⇧⌘H` or `Ctrl+Shift+H` on Windows). Hiding is per canvas: an
  object hidden in the vertical canvas still shows in the landscape one. See
  [Canvases](/desktop/build-your-show/canvases).
- **Lock**: click the lock on the row (`⇧⌘L` or `Ctrl+Shift+L` on Windows). A locked object can't be moved
  or resized on the canvas, and neither can anything inside it.

### Arrange

| Action | Shortcut |
|---|---|
| Bring forward | `⌘]` or `Ctrl+]` on Windows |
| Send backward | `⌘[` or `Ctrl+[` on Windows |
| Bring to front | `⇧⌘]` or `Ctrl+Shift+]` on Windows |
| Send to back | `⇧⌘[` or `Ctrl+Shift+[` on Windows |

The same commands are in the **Object** menu and under **Arrange** when you right-click an
object.

### Copy, paste and duplicate

`⌘C` or `Ctrl+C` on Windows, `⌘X` or `Ctrl+X` on Windows and `⌘V` or `Ctrl+V` on Windows copy, cut and paste objects, with
everything inside them. Paste into another scene to reuse an object there. `⌘D` or `Ctrl+D` on Windows
duplicates the selection in place, in front of the original, without touching the clipboard.
`⌫` or `Backspace` on Windows or `⌫` or `Delete` on Windows deletes it.

## Groups and empties

An empty is an object with no picture of its own that holds other objects. Moving, turning or
scaling it carries everything inside.

- **Group** (`⌘G` or `Ctrl+G` on Windows): puts the selected objects in a new empty called "Group", centred
  on them. Type a name and press `↩` or `Enter` on Windows.
- **Ungroup** (`⇧⌘G` or `Ctrl+Shift+G` on Windows): takes the objects out of the selected empty and removes
  it. They stay where they are on the canvas.
- **Create empty** (`⇧⌘N` or `Ctrl+Shift+N` on Windows): a new empty at the middle of the canvas.
- **Create empty inside** (`⌥⇧N` or `Alt+Shift+N` on Windows): a new empty inside the selected object.
- **Move out of parent** (right-click menu): takes an object out of the one holding it, in front
  of it.

Any object can hold others, not only empties: drop a row onto a camera and it follows the camera.
An empty's Inspector shows its position, rotation and scale, with **Reset**, **Add empty inside**
and **Ungroup**.

## The Inspector

Select an object and the **Inspector** on the right shows its settings, top to bottom:

- The object's name, with **Fill the canvas** and **Delete object**.
- **Source**: which camera, display, window or file it shows, with **Change**. For a camera,
  **Sound in the mixer** gives the camera's own microphone a strip in the mixer.
- **Transform**: position, size, rotation, flips, fit and shape. See
  [Canvas editing](/desktop/build-your-show/canvas-editing).
- The type's own settings: a text's font, a timer's mode, a video's playback.
- **Effects**: the object's effect stack. See [Effects](/desktop/build-your-show/effects).
- **Canvases**, when the show has more than one: which canvases show it.

With several objects selected, the Inspector offers alignment and **Delete** instead.

Right-click an object, on the canvas or in the Hierarchy, for everything above plus **Change
source…**, **Fill canvas**, **Save as prefab** and **Export as package…** (see
[Packages](/desktop/chat-and-widgets/packages)).

## Show a scene over every scene

To keep objects on screen whatever scene is on air (a logo, a ticker), put them in a scene of
their own, right-click it in the **Scenes** list and choose **Show over every scene**. See
[Scenes](/desktop/build-your-show/scenes#show-a-scene-over-every-scene).

## Prefabs

A prefab is an object, with everything inside it and its effects, saved to reuse. Right-click an
object and choose **Save as prefab**: it appears in the **Assets** panel. Drag it from there onto
the canvas or the Hierarchy to place a copy in any scene. Prefab copies are shown in the accent
colour in the Hierarchy.

## Related

- [Captures](/desktop/build-your-show/captures)
- [Canvas editing](/desktop/build-your-show/canvas-editing)
- [Scenes](/desktop/build-your-show/scenes)
