Aego Русский

The Animator panel

The Animator panel with the platformer's controller

Window → Animator shows the controller of the selected node's Animator as a graph: one box per state, the Entry pill pointing at the state the Animator starts in, and the Any State pill for transitions that may leave any state. Arrows are transitions, labelled with their conditions; two transitions between the same states in opposite directions bend apart. The wheel zooms around the mouse; drag the background or hold the middle button to pan; Frame All in the background menu fits the graph.

Drag a state, Entry or Any to move it; the position is saved as pos of the state and entryPos / anyPos of the controller, so the layout belongs to the file. Drag from the dot on the right of a state (or of Any) to another state to add a transition. Right-click the background to add a state or run Auto Layout, which places every state in columns from the entry. Right-click a state to make it the entry or delete it with its transitions; right-click a transition to move it up or down or delete it.

The left side edits the selection: a state's clip and speed, or a transition's duration, exit time, interrupt flag and conditions. Transitions are tried in their order, so the arrows ↑ ↓ next to the title move the selected one earlier or later. Under the inspector are the parameters; + adds one of each kind, − removes it.

Every change is one Undo step on the controller file. A change made outside the editor, in a text editor or through aego mcp, shows up as soon as the file is reimported.

During Play the state the Animator is in is highlighted, with a ring that fills as its clip plays, and the parameters become live: type a float, toggle a bool or press Fire for a trigger to drive the running game.