The Animation panel

Window → Animation edits the clip of the selected node's Animation Player, or the clips of its Animator's controller. Create → Animation → Clip (Ctrl+Shift+N, clip, Enter) makes a one-second looping clip next to the scene and gives a node without a player one that plays it; Create → Animation → Controller does the same with an Animator and a controller holding one Idle state. The file is new, so only the added component is an Undo step.
Preview shows the clip on the node at the time cursor without touching the scene: saves, Play and Undo see the values the scene really has. Fields the clip drives turn read-only in the Inspector, with a yellow bar and the tip "driven by clip". Rec turns edits into keys: a value typed in the Inspector or a move in the Scene View sets a key at the cursor instead of changing the scene. With Auto Key off, press K.
The dope sheet shows one row per track and a diamond per key; sprite tracks show the frames as thumbnails when there is room. Drag keys to move them, drag the ruler to scrub, double-click the event lane to add an event. The wheel zooms the time around the mouse, Shift+wheel pans. Curves draws the selected numeric track as a curve, one lane at a time (x/y, r/g/b/a); drag points and tangent handles, double-click to add a key, right-click to remove one. A whole drag is one Undo step, and the other lanes of an edited key keep their values.
| Key | Does |
|---|---|
| Space | plays or pauses the clip |
| K | keys every field of the selected node whose value differs from the clip at the cursor |
| Delete | deletes the selected keys |
| Ctrl+C, Ctrl+V | copy keys, paste them at the cursor; pasting into another clip creates the missing tracks |
The keys only work while the mouse is over the panel. The key menu also has Set from Scene, which gives the selected keys the values their properties have in the scene.
Drag a sprite or sheet cells from Assets onto a sprite track to key them: the first lands where you let go, the others follow one per 1/12 s, and the clip grows when they run past its end. In Curves the graph shares the ruler of the dope sheet, so a key sits under its time.
To hide a sprite for part of a clip, key its tint to a transparent color: #00000000 and #ffffff00 both draw nothing, in every blend mode. A fade from #ffffffff to #ffffff00 keeps the color white while it fades; a fade to #00000000 passes through grey. The platformer's attack shows its slash arc this way, and the player script hides the arc again when an attack is cut short.
In Preview and Record the Scene View draws the path of the node's transform.position track, with its keys as dots: drag a dot to move that key. Preview events flash on the path when the playback crosses them. While you drag the move gizmo in Record, the node follows the mouse instead of the clip, and the key is set when you let go.