Using Blend Spaces

Choose your OS:

Blend Spaces are used by placing nodes in the AnimGraphs of Animation Blueprints which take in value data to drive the blending of animations and the final animation pose.

For a full walk-through of setting up a Blend Space for locomotion blending, see the Locomotion Based Blending how-to page.

Adding Blend Space Nodes

Blend Space nodes provide access to the sample parameter data and output pose of the Blend Space.

To place a Blend Space node using drag-and-drop:

  1. In the AnimGraph of an Animation Blueprint, find the Blend Space you want to sample in the Asset Browser.

    SelectBlendSpace.png

  2. Left-click on it and drag the mouse into the AnimGraph.

    DragDropBlendSpace.png

  3. Release the Left Mouse Button to place the Blend Space node in the graph.

    BlendSpaceNodeAdded.png

To place a Blend Space node using the context menu:

  1. Right-click in the AnimGraph and expand Blend Spaces and select the Blend Space you want to sample.

    AnimationContextMenu.png

  2. The Blend Space node is placed in the graph.

    BlendSpaceNodeAdded.png

Sampling Parameters

Blend Spaces rely on data being passed into the sample parameters in order to perform the animation blending. Each Blend Space node has input data pins for each sample parameter that is created during the Editing Blend Spaces process. Variables or outputs from other nodes can be wired to these pins to pass the necessary data to the Blend Space and drive the blending of your Sample Poses.

Variable Input Data

The values passed to the Blend Space are generally variables calculated during the update cycle in the EventGraph or through gameplay code.

Variable Input Data - Update Cycle

An example of the Direction and Speed variables being calculated in the EventGraph of an Animation Blueprint is shown above.

Output Pose

The Pose output pin of the Blend Space node can be wired to the Pose input pin of the Result node in the AnimGraph in the simplest case.

Output Pose - Result

Or, it can be wired to any other input pin that accepts an animation pose as an input when a more complex animation chain is necessary.

Output Pose - Blend