Animation Database Node
The Animation Database node plays an Animation Database asset as a pose. You find it in the Pose Generation category.
Every update, the node reads the database's columns from the graph's blackboard and picks the best matching rule in each channel. The base channel's rule is the pose. When it changes, the node crossfades over the time that a blend override or the changed columns give. Layer channels play their rule on top and fade out when no rule matches. When gameplay sets an action channel's entry, the node sets the entry back to none, plays the action's rule once, and fades it out at its end.
Setup
- Add the database's columns to the graph's blackboard, or to the character's blackboard template, at their defaults.
- Add an Animation Database node to the graph and set Database.
- Connect Pose to the output, or to a node that blends it further.
- Drive the character from gameplay code by setting the blackboard values that the columns name.
Properties
| Property | Default | Description |
|---|---|---|
| Database | The Animation Database asset to play. | |
| PlaybackSpeed | 1 | Multiplies the speed of every rule, unless In Speed is connected. |
Pins
| Pin | Description |
|---|---|
| In Speed | The playback speed. While it is connected, it is used instead of PlaybackSpeed. |
| Out Pose | The pose of all channels together. |
| Out Base Row | The index of the base channel's rule that plays, counted from 0. Useful for debugging. |
| Out On Action Started | Fires when an action channel starts a rule. |
| Out On Action Finished | Fires when an action channel's rule ends. |