# Add Component and Create

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

One palette adds components and creates nodes. It finds an item from a few typed letters and shows what comes with it before you add it.

![The palette: "col" lists the colliders, the right pane describes the highlighted one](shots/add-palette.png)

- `Ctrl+Shift+A`, or **Add Component** in the Inspector, adds to the selected nodes.
- `Ctrl+Shift+N`, **Create…** in the Hierarchy or Scene View menus, or the **+** buttons create a node. **Create Empty** is `Alt+Shift+N`.

## Search

The search field takes the keys at once, so `Ctrl+Shift+A`, `mot`, `Enter` adds Motion 2D without the mouse. The query matches, in this order:

1. the start of the name: `mot` finds Motion 2D;
2. initials: `vc` finds Virtual Camera 2D, `cf2` finds Camera Follow 2D;
3. the start of any word: `fol`;
4. any part of the name: `box` finds Box Collider 2D, then Hitbox 2D and Hurtbox 2D.

Within each kind of match, items you add more often come first.

| Key | Does |
|---|---|
| ↑ ↓, PgUp PgDn, Home End | move the highlight |
| Enter | adds the highlighted item, the first one by default |
| Shift+Enter | adds it and keeps the palette open |
| Tab | switches the alternative of a requirement |
| Ctrl+D | stars or unstars the item |
| Esc | closes |

With an empty query the palette lists the eight items used last, your starred items, then the categories. Categories are folded, except those you used, and the palette remembers which are open.

## What comes with a component

The right pane shows the component's documentation and what comes with it:

- **Also adds** lists the components it requires. They are added first, in the same step.
- **Needs one of** appears when any of several components will do. The first is picked; `Tab` or a click picks another.
- **Also add…** check boxes offer components that usually go with it, such as a collider for Motion 2D. They start unchecked.
- Items that cannot be added are grey, with the reason: already on the node, needs a 2D node, one per scene, or two components that drive the same node.

With several nodes selected, the component goes on every node it fits, and the pane names the nodes it skips. Everything one pick adds is one Undo step. Project scripts are listed under Scripts with their package on the right.
