Burst Animation System beginner guide

Use this guide to make your first animation graph in BAS 1.0. It uses Unity 6000.3.7f1. You can complete the cube, Generic rig, and Humanoid lessons without code.

Choose a lesson

  1. Start here to install BAS and find its tools.
  2. Animate a cube to make a clip and play it in a graph.
  3. Animate a Generic rig to work with a robot or animal.
  4. Animate a Humanoid to set up an Avatar and add arm IK.
  5. Add graph behavior to blend poses, change states, and play actions.
  6. Find a tool or fix a problem for a short reference and checklists.

Start with the cube if you are new to Unity animation. You can make the model and clip in Unity. Bring your own models and compatible clips for the rig lessons.

If you installed Playground and Gallery, open its sample README for the scene links and controls. Use Gallery to see complete examples of graph nodes. The lessons in this guide make new graphs, so you can follow them in a fresh project.

Open the complete offline guide. Keep the files in this folder together for offline use.

1. Start here

Contents · Next: animate a cube

Install BAS

  1. Create or open a Unity 6000.3.7f1 3D project.
  2. Open Window > Package Management > Package Manager. Install Burst Animation System. For a supplied .tgz archive, use the + menu and select Install package from tarball. Unity installs its dependencies.
  3. Wait for Unity to import the package and compile its scripts. Resolve compilation errors in Window > General > Console before you make a graph.
  4. If you want to explore the examples, select BAS in Package Manager. In Samples, import Playground and Gallery. Follow the imported sample README to open the scenes. The sample controls need Active Input Handling set to Input Manager (Old) or Both in Unity's Player settings.
  5. In Project, create an Assets/MyAnimationLessons folder for your own graphs, clips, and prefabs.

For a supplied .unitypackage, use its README to install the listed dependencies first. Then use Assets > Import Package > Custom Package. Keep the source generator and its supplied metadata with either install.

The welcome window has two switches for opening clips and model files in the Clip Editor. You can change these later in Tools > Burst Animation System > Settings > Preferences.

What a graph does

A clip stores changes over time. A graph selects clips and combines them. Each node does one operation. A line sends a result to the next node.

Clip → Output Pose

This is a complete first graph. The Clip sends a pose to Output Pose. The scene's Graph Animator then applies that pose to the object or character.

Word Meaning
Transform The position, rotation, and scale of an object.
Hierarchy Objects and their parent-to-child links.
Local Relative to the parent object.
World Relative to the scene.
Prefab A saved object hierarchy that you can put in a scene.
Rig The bones and hierarchy that a character uses.
Avatar Unity data about a rig. A Humanoid Avatar maps bones to body roles.
Pose The positions, rotations, and scales at one point in time.
Blend A combination of poses. Its weight controls how much each pose contributes.
Prepare Convert source clips into data that BAS can use.
Root motion Movement from the animation that can move the actor through the scene.

Find the tools

To do this Use this
Make a graph Tools > Burst Animation System > Create > Animation Graph
Edit a saved graph Double-click the graph in Project.
Inspect a clip Select the clip in Project. Open Tools > Burst Animation System > Editors > Clip Editor.
Play a graph in a scene Add Burst Animation System > Graph Animator to the animated root.

Use Save in the graph window after you connect the nodes. BAS saves the graph and prepares the clips. Select the scene object and check Status in Graph Animator. Use the action shown there if the object needs setup.

Find the right asset

Select the model file in Project to see its Rig import settings. Expand the file to see its Avatar, meshes, and clips. When the graph creation window asks for a model, select the model or prefab itself.

Two clips can have the same name. If the picker shows two Idle clips, expand the intended model in Project. Drag its Idle clip to the node's Clip field. If you selected the wrong clip, replace it and save the graph again.

In the creation window, check Save folder before you create the graph. The window can reuse the folder from your last creation.

Preview and scene playback

The graph window has its own actor and clock. You can play that preview while the scene is stopped. To see all the nodes, select Frame All. To see the preview model again, select Frame in the preview.

Playground's graph editor with the preview on the left, a pose graph in the center, and graph settings on the right
Playground's graph editor with the preview on the left, a pose graph in the center, and graph settings on the right

Select a node to see its fields in Details. Select empty canvas space to see Graph Settings. Use Save after you change the graph. A preview input change stays in the preview.

Check the actual scene separately. If it moves in Scene view but Game view is empty, check where the Main Camera points.

2. Animate a cube

Contents · Previous · Next: Generic rigs

Make a cube move up and down. Use an Object Hierarchy graph for an object with no Humanoid or Generic Avatar.

Make a source prefab

  1. In a new scene, create an empty GameObject named MyCubeActor.
  2. Set its position and rotation to zero and its scale to (1, 1, 1).
  3. Use GameObject > 3D Object > Cube. Drag Cube onto MyCubeActor in Hierarchy to make it a child.
  4. Set Cube's local position and rotation to zero and its scale to (1, 1, 1).
  5. Drag MyCubeActor from Hierarchy to your lesson folder to save a prefab.

Animate the Cube child. You can then use its parent to place the whole object in the scene.

MyCubeActor
└── Cube

The clip path to the child is Cube. It starts at the graph root.

Record a clip in Unity

  1. Select MyCubeActor in Hierarchy. Open Window > Animation > Animation.

  2. Select Create. Save the clip as MyCubeMove.anim.

  3. Use Add Property > Cube > Transform > Position.

  4. Turn on recording. Set three keys for Cube's local position.

    Time Local position
    0 seconds (0, 0, 0)
    0.5 seconds (0, 1, 0)
    1 second (0, 0, 0)
  5. Turn off recording. Play the clip in the Animation window to check the movement.

If the timeline shows frames, use frames 0, 30, and 60 at 60 samples per second. Check the sample rate before you set the keys.

If Unity added an Animator for recording, disable it or clear its Controller before you use Graph Animator to run the scene object. Use the Unity Animation window again if you need to edit the keys.

Make a graph from the prefab

  1. Select MyCubeActor.prefab in Project.
  2. Open Tools > Burst Animation System > Create > Animation Graph.
  3. Select Object Hierarchy. Set Prefab to MyCubeActor and Root to Prefab root.
  4. Name the graph MyCubeGraph and set Save folder to your lesson folder.
  5. Select Create Graph.
The Gallery button example shows the same Object Hierarchy graph type
The Gallery button example shows the same Object Hierarchy graph type

Play the clip in the graph

  1. Right-click empty canvas space. Search for Clip.
  2. Add Sources > Clip. In Details, assign MyCubeMove.anim to Clip.
  3. Set Speed to 1 and Loop to Loop.
  4. Drag the Clip node's pose output to the input on Output Pose.
  5. Select Save and wait for preparation to finish. Read Problems if the graph reports an error.
  6. Play the graph preview. Use Frame if you cannot see the cube.
The Gallery Clip example uses the same connection from Clip to Output Pose
The Gallery Clip example uses the same connection from Clip to Output Pose

The Clip node advances time during playback. Use Clip Pose when you want to supply that time yourself.

Play the graph in the scene

  1. With Play Mode stopped, select MyCubeActor in Hierarchy.
  2. Use Add Component to add Burst Animation System > Graph Animator.
  3. Assign MyCubeGraph to Graph.
  4. Check Status. Select Set Up Character if shown. If asked to compile or save the graph, do that and wait for the action to finish.
  5. Save the scene. Enter Play Mode and watch the cube in Scene view.

The cube must move relative to MyCubeActor. If you see the graph working in preview but the scene object is still, check the scene object's Status and check for a second component that controls the child.

Try rotation and scale

Make a separate clip for each exercise. Use the same parent and child. Replace the clip in the graph and select Save after each change.

Property Keys at 0, 0.5, and 1 seconds
Rotation (0, 0, 0), (0, 0, 60), (0, 0, 0)
Scale (1, 1, 1), (1.5, 1.5, 1.5), (1, 1, 1)

A clip with a position or scale curve controls that whole vector. For example, the Y curve in this lesson also gives BAS control of the cube's X and Z position. Move MyCubeActor to place the cube in the scene.

Inspect the clip in BAS

Select MyCubeMove.anim in Project. Open Tools > Burst Animation System > Editors > Clip Editor. You can also double-click the clip when that option is on in BAS Preferences.

The Clip Editor showing the Standard Idle preview, clip settings, and timeline
The Clip Editor showing the Standard Idle preview, clip settings, and timeline

If the preview needs a model, set Preview Scene > Preview Model > Target model to MyCubeActor. Use the controls below the preview to play the clip or move to a time. To change the cube's position keys, use Unity's Animation window.

3. Animate a Generic rig

Contents · Previous · Next: Humanoids

Use a Generic rig for a robot, animal, or other bone hierarchy that has a Generic Avatar. Start with a saved model and one clip made for that model.

Import the model and clip

  1. Select the model file in Project. Open Rig in Unity's Inspector.
  2. Set Animation Type to Generic.
  3. For a model that has its own rig, set Avatar Definition to Create From This Model. Select the intended root node when Unity asks for it.
  4. Keep Optimize Game Objects off so the bones stay available.
  5. Select Apply. Check that Unity created a Generic Avatar.
  6. Expand the model in Project. Select a clip and preview it on the model.

For a separate animation file with the same rig, use Copy From Other Avatar and select the model's Generic Avatar. The animation paths must still match the model.

Make the graph and set up the actor

  1. Select the saved model in Project.
  2. Open Tools > Burst Animation System > Create > Animation Graph.
  3. Select Generic and the root with the Generic Avatar. Set a name and save folder, then select Create Graph.
  4. Add a Clip node and assign the clip. Set Speed to 1. Select Loop for repeated motion or Play Once for a single pass.
  5. Connect its pose output to Output Pose. Select Save.
  6. Put the model in your scene. Add Graph Animator to the same root and assign the graph. Use the action on the Status row if needed.
  7. If the model has an enabled Animator with a controller, disable it or clear its controller. Save the scene and enter Play Mode.
Gallery's Generic BoxCarrier graph with one Clip node and one Output Pose
Gallery's Generic BoxCarrier graph with one Clip node and one Output Pose

Check the bone path

For example, a robot clip can animate Base/Arm:

RobotActor
└── Base
    └── Arm

Put Graph Animator on RobotActor. If you rename Arm to RightArm or attach Graph Animator to a different root, that clip path does not match. You can put a placement parent above RobotActor and keep Graph Animator where it is.

Start with one rig and matching clips. Different bone paths can require a Generic Borrow map or a separate preparation setup. The installed product guide explains those options. Use scale 1 on the root and its parents for this first exercise.

Try an animal with root motion

Use an animal model and compatible Idle, Walk, Run, and action clips. Use a Walk clip with travel if you want the graph to move the actor.

  1. In the model's Rig tab, identify the root node that carries the travel. Inspect the motion. A node named Motion can carry travel, while another root bone can move only the body.
  2. For a separate animation file, copy the matching Generic Avatar. Check the clip in its Animation tab. For a traveling walk, keep XZ travel out of Bake Into Pose.
  3. Make AnimalWalkGraph. Connect the Walk Clip to Output Pose and set it to Loop. Save and set up Graph Animator on the animal.
  4. Open Playback on Graph Animator. Turn on Apply Root Motion. Disable any other movement writer for this exercise.
  5. In Play Mode, check that the legs move and the actor's position changes over several loops.

For an in-place clip, turn off Apply Root Motion and use a movement script. Use one owner for scene movement. Automatic root motion does not provide collision handling.

For a speed blend, follow the Blend Space exercise. For actions on top of the walk, go to chapter 5.

If the rig stays in its reference pose

4. Animate a Humanoid

Contents · Previous · Next: graph behavior

Play one idle clip on its original Humanoid character. Use that working graph for the retargeting and IK exercises later in this chapter.

Import and check the Avatar

  1. Select the character model in Project. Open Rig in Unity's Inspector.
  2. Set Animation Type to Humanoid. If the model has its own rig, set Avatar Definition to Create From This Model.
  3. Select Apply. Open Configure and fill any missing required bone mappings. Use Unity's pose tools if the model needs a valid T-pose.
  4. Select Apply and Done. Expand the model file and check that its Avatar is valid and Humanoid.
  5. Select an idle clip and preview it on the model.

For a separate animation file with the same rig, use Copy From Other Avatar and select the correct source Avatar. If Unity reports an import warning, read it on the source file and in Console. Fix the source rig or its mapping before you make a graph.

Make a graph and set up the character

  1. Select the saved character model or prefab. Open Tools > Burst Animation System > Create > Animation Graph.
  2. Select Humanoid, then the saved root with the Avatar.
  3. Name the graph MyIdleGraph, set Save folder, and select Create Graph.
  4. Add Sources > Clip. Select the idle clip. Set Speed to 1 and Loop to Loop.
  5. Connect the Clip's pose to Output Pose. Select Save. If BAS asks to create a Skeleton, confirm. If you need to create it yourself, use Graph Settings > Preparation > Create Skeleton.
  6. Play the graph preview. Check the whole body.
  7. Put the character prefab in a scene. Add Graph Animator to the root that has the Avatar. Assign MyIdleGraph.
  8. Check Status in Graph Animator and follow the action shown. Disable any enabled Unity Animator with a controller, or clear its controller.
  9. Save the scene and check the motion in Play Mode.
The Graph Animator on Playground's BasBot Player shows Ready in the Status row
The Graph Animator on Playground's BasBot Player shows Ready in the Status row

Use the correct source and target

The source is the rig the clip was made for. The target is the character that receives the animation. Start with the same rig for both.

If a Humanoid .anim has no known source, open the clip in the Clip Editor. In Asset Details, open Sampling (Burst) and Source and supported data. Set Source Character to the original imported model. Save the graph again. Use Preview Model when you want to change the preview target.

To try another Humanoid, set up a scene actor with its own valid Avatar and assign the same graph. BAS can use Borrow to adapt the main rig's result. Read the rig message on Graph Animator. Add the second rig with Graph Settings > Rigs > Bake natively for if you need its own proportions for the pose and IK solve. Inspect its motion separately.

Choose loop and movement settings

Clip node's Loop setting Effect
Use Clip Setting Follow the clip's Loop Time or saved BAS loop setting.
Loop Repeat the clip.
Play Once Play to the end and hold the final pose.

Use an in-place idle and walk for your first blend. For traveling motion, choose one owner for scene movement. See the Generic root-motion exercise for the Graph Animator setting and a scene check.

Foot IK in the Clip node selects a prepared clip form. To solve an IK target while the graph runs, add a skeletal control node.

Raise both hands with Two Bone IK

Make a copy of the working graph. Check that the source pose works before you add IK. You can use the idle first and then try the same controls over a locomotion blend.

Idle or locomotion → Left arm IK → Right arm IK → Output Pose
  1. Insert two Skeletal Controls > Two Bone IK nodes after the source pose.

  2. Select Target and Pole as the Target mode on both nodes. In the bone picker, assign these roles.

    Arm Root Joint Tip
    Left Left Upper Arm Left Lower Arm Left Hand
    Right Right Upper Arm Right Lower Arm Right Hand
  3. Select Component space for the target and pole positions. Use positive, uniform scale on the chain and its ancestors. Start with scale 1.

  4. Set both Weight fields to 0. Save. Check the source pose.

  5. Set Target Position and Pole Position to Constant for one arm. Start near the hand's current position. Raise the target in small steps and keep it within reach. Put the pole on the side toward which the elbow should bend.

  6. Leave Tip Rotation at Keep Local. Set Weight to 0.5, then 1. Save and check the result at each weight.

  7. Repeat for the other arm. Check both together. Set both weights to 0 to return to the source pose.

For a first target, use a point 0.10 m above the hand. Use the character's axes and proportions. Component targets move with the actor. World targets stay at a scene position.

To control hand orientation, choose Copy From Target in Tip Rotation and provide a Target Rotation. Make a small change first. For a further offset after the solve, add Bone Modify and select the Hand role. Use a small position offset and keep scale at (1, 1, 1).

If the character looks wrong

5. Add graph behavior

Contents · Previous · Next: tools and faults

Make a copy of a working graph before each exercise. With the cube, make a MyCubeRest.anim clip that holds Cube at local position zero for one second. Use MyCubeMove.anim for movement. With a character, use its Idle and Walk clips.

Blend two clips

  1. Make two Clip nodes. Give them the rest and move clips.
  2. Add Blend 2. Connect rest to Pose A and move to Pose B.
  3. Connect the blend's pose output to Output Pose.
  4. Set Weight to 0.5. Save and play the graph preview.
Rest → Pose A ┐
              Blend 2 → Output Pose
Move → Pose B ┘

On the cube, 0 gives no movement, 1 gives full movement, and 0.5 gives half the height. On a character, 0.5 gives a mix of the two poses.

The Gallery Blend 2 example connects two clips to Pose A and Pose B
The Gallery Blend 2 example connects two clips to Pose A and Pose B

Change a blend with a variable

  1. Drag from the Blend 2 Weight input into empty canvas space.
  2. Choose Create Variable > Float. Name it Blend and select Create and Connect.
  3. Check that the getter connects to Weight. Save the graph and let any C# compilation finish.
  4. Open Preview settings > Preview inputs. Try 0, 0.5, and 1.

To control the scene actor, create BeginnerBlendDriver.cs:

using BAS;
using UnityEngine;

public sealed class BeginnerBlendDriver : MonoBehaviour
{
    public GraphAnimator actor;
    [Range(0f, 1f)] public float blend;

    void Update()
    {
        if (actor != null && actor.Instance != null)
            actor.SetFloat("Blend", blend);
    }
}

Attach the script to the actor. Assign its Graph Animator to Actor. Enter Play Mode and change Blend in the Inspector. The graph must have a writable Float called Blend. The name is case-sensitive.

Change state after one second

The Gallery state machine showing Entry, Idle, Run, and transitions between the two states
The Gallery state machine showing Entry, Idle, Run, and transitions between the two states
  1. Add a State Machine and connect its pose output to Output Pose.
  2. Double-click the machine. Use + State to add Rest and Move.
  3. Right-click Rest and select Set as Default State.
  4. Double-click Rest. Connect a Clip with your rest clip to Output Pose.
  5. Return to the machine using the breadcrumb. Open Move and connect a Clip with your movement clip to its Output Pose.
  6. Return to the machine. Right-click Rest, choose Make Transition, and select Move.
  7. Select the transition. If the rule pane shows Use Graph Rule, select it. Turn on Graph View if needed. Add State Time and Greater Or Equal. Connect State Time to the first comparison input and set the second input to 1. Connect the Bool result to Transition > Condition.
  8. In the transition's Blend settings, set Duration to 0.2 seconds. Save. Reset the graph preview and play it.

The state machine begins at Rest. After one second it starts to blend to Move. State Time measures time in the state. To measure animation progress, use Normalized State Time or State Time Remaining. With a timed crossfade, Time to Blend Out can start the next state when the current animation has one fade duration left.

Play an action through a slot

Use a prepared Humanoid or Generic graph. For example, use an idle or locomotion graph and a compatible wave or hit clip.

The Gallery Slot example sends a base clip through DefaultSlot to Output Pose
The Gallery Slot example sends a base clip through DefaultSlot to Output Pose
  1. Add a Slot between the base pose and Output Pose. Keep the name DefaultSlot.
  2. Open the action in the Clip Editor. In Asset Details > Bake For, set Bake for to Every rig it fits. You can use These Skeletons to limit it to the Skeleton for this exercise.
  3. In Graph Settings > Shared Animations, check that Load is All for this exercise. Save the graph.
  4. Open Preview settings > Slot playback. Select DefaultSlot and the action clip. Open Play settings and set Loop to Play Once.
  5. Play the graph preview. Select Play in the slot controls. The preview can hold the last pose. Use Stop to return to the base pose.

In scene playback a one-shot clip blends out on its own. Test both the natural end and manual cancellation with this script. Save it as BeginnerActionDriver.cs.

using BAS;
using UnityEngine;

public sealed class BeginnerActionDriver : MonoBehaviour
{
    public GraphAnimator actor;
    public AnimationClip actionClip;
    SlotHandle action;

    void OnGUI()
    {
        if (GUI.Button(new Rect(10, 10, 120, 28), "Play action"))
            PlayAction();
        if (GUI.Button(new Rect(10, 44, 120, 28), "Stop action"))
            action.Stop(0.15f);
    }

    void PlayAction()
    {
        if (actor == null || actor.Instance == null || actionClip == null)
            return;

        var settings = PlaySettings.Blend(0.15f, 0.15f);
        settings.loop = LoopOverride.PlayOnce;
        action = actor.PlayClip("DefaultSlot", actionClip, settings);
    }
}

Attach the script to the actor and assign Actor and Action Clip. Enter Play Mode and use the buttons in Game view. Each play gives you a new SlotHandle. Keep that handle to stop the same playback later. If BAS reports missing content, check the rig, the clip's Bake for setting, the graph's Shared Animations settings, and the exact slot name.

Use Animation Registry in Tools > Burst Animation System > Editors to see which rigs and graphs use a shared clip. You can also set a shared animation's category and name to request it by a name such as Actions/Hit.

Make a one-section montage

Use a montage when you want named sections or more than one clip or slot track on one timeline. Start with a single track and section.

  1. Select the saved source rig in Project. Open Tools > Burst Animation System > Create > Animation Montage.
  2. Select the rig and root that the graph uses. Create and open the montage.
  3. Use + Add > New slot track to add DefaultSlot if it is absent.
  4. Select the track. In the Asset Browser, select a compatible clip and choose Insert. Leave the segment at its full length.
  5. Keep the first section at zero. Rename it Action. Leave its next link on Continue so this single section ends.
  6. Save the montage. Save the graph to prepare the content for the rig.
  7. In graph preview, open Slot playback, enable Montage, and select the montage and its section. Select Play.

From scene code, use actor.PlayMontage(montage). The montage's track names must match the graph's Slot nodes. Use the installed montage guide for multiple tracks, looping sections, and links between sections.

Change one bone

  1. Put Bone Modify between a working Clip and Output Pose.
  2. Select a bone in the picker. Use a full bone path for a Generic rig.
  3. Set Weight to 1 and give Position Offset a small constant. Select the space for that value. Save and check the result.
  4. Set Weight to 0. The original pose must return.

Use Two Bone IK to reach a target with a two-bone limb. Use Look At to aim one bone. Start with one control at a time. Component space uses the actor's frame. World space uses the scene's frame.

Show health and play a reaction

Use the working animal or character graph with DefaultSlot. Prepare two compatible action clips as above. One plays on damage and one on healing.

Set up the display

  1. Make an empty HealthAnchor child on the actor root at local position (0, 1.5, 0), or higher if needed.
  2. Add a Canvas named HealthCanvas under HealthAnchor. Set its Render Mode to World Space. Set local position and rotation to zero.
  3. Set the Canvas width to 200, height to 30, and local scale to (0.005, 0.005, 0.005) for a one-meter display on an actor at scale 1.
  4. Add a Slider under the Canvas. Center it, set width 200 and height 30, and set local position and rotation to zero and scale to one.
  5. Keep its Fill Rect. Set Min Value to 0 and Max Value to 1. Turn off Whole Numbers and Interactable. Hide the Handle Slide Area child.
  6. Turn off the Canvas Graphic Raycaster. Point the Main Camera at the actor and check that it renders the display layer.

Add the health script

Save this as BeginnerHealthDriver.cs. The script owns health. The Slider displays that value. BAS plays a reaction after a change.

using BAS;
using UnityEngine;
using UnityEngine.UI;

public sealed class BeginnerHealthDriver : MonoBehaviour
{
    public GraphAnimator actor;
    public Slider healthSlider;
    public Camera viewCamera;
    public AnimationClip hitClip;
    public AnimationClip healClip;

    const float MaxHealth = 100f;
    float health = MaxHealth;
    SlotHandle action;

    void Awake()
    {
        UpdateDisplay();
    }

    void LateUpdate()
    {
        if (healthSlider != null && viewCamera != null)
            healthSlider.transform.rotation = viewCamera.transform.rotation;
    }

    public void Damage(float amount)
    {
        ChangeHealth(-Mathf.Max(0f, amount));
    }

    public void Heal(float amount)
    {
        ChangeHealth(Mathf.Max(0f, amount));
    }

    void ChangeHealth(float delta)
    {
        float previous = health;
        health = Mathf.Clamp(health + delta, 0f, MaxHealth);
        UpdateDisplay();

        if (health == previous || actor == null || actor.Instance == null)
            return;

        AnimationClip reaction = health < previous ? hitClip : healClip;
        if (reaction == null)
            return;

        var settings = PlaySettings.Blend(0.15f, 0.15f);
        settings.loop = LoopOverride.PlayOnce;
        action = actor.PlayClip("DefaultSlot", reaction, settings);
    }

    void UpdateDisplay()
    {
        if (healthSlider != null)
            healthSlider.SetValueWithoutNotify(health / MaxHealth);
    }

    void OnDisable()
    {
        action.Stop(0.15f);
    }

    void OnGUI()
    {
        if (GUI.Button(new Rect(10, 10, 120, 28), "Damage 25")) Damage(25f);
        if (GUI.Button(new Rect(10, 44, 120, 28), "Heal 10")) Heal(10f);
        if (GUI.Button(new Rect(10, 78, 120, 28), "Stop action")) action.Stop(0.15f);
    }
}

Attach the script to the actor and assign every field. Use the scene's Graph Animator, Slider, and Main Camera. Assign the same prepared clips that you checked in the slot preview. Remove the first action driver's component if it is still attached, so the Game view buttons do not overlap.

In Play Mode, select Damage 25, then Heal 10. Check that the bar shows 75% and then 85%. Check that both reactions return to locomotion. Repeat a request during a reaction, and use Stop action to check cancellation. Try requests at zero and full health. Health cannot go outside that range. As the actor moves, check that the bar follows it and faces the camera.

6. Find a tool or fix a problem

Contents · Previous

Find your way around the graph

Area or control Use
Runtime Preview See the graph's final pose on a private actor.
Preview settings Choose a model, change inputs, or play a slot.
Graphs Open graphs, state machines, states, and local subgraphs.
Variables Find graph inputs and C# declarations.
Details Edit the selected item. Select empty canvas space for Graph Settings.
Class Defaults Set starting values for fields of the graph's AnimInstance type.
Asset Browser Find compatible assets and open their editors.
Save Save the graph, prepare its content, and apply it.
Compile Check the graph, generate C# if needed, and prepare its content. Use Save to keep and apply edits.
Problems Read an error and find the item that needs attention.
Frame All Bring the graph nodes back into view.
Debug Inspect a running scene actor that uses this graph.

In the preview, Alt-left drag orbits, middle drag pans, and the wheel zooms. Use Frame to find the model. Reset also resets the private playback state. For a larger view, drag the divider below the preview.

To inspect an actor in Play Mode, use the toolbar's Debug picker. You can select a character that runs the open graph. Live Debug reads the character's completed pose and state. Return to the private preview to use its playback controls.

Choose a node

Task Nodes to try
Play or sample a clip Clip advances time. Clip Pose uses a time you supply.
Blend two poses Blend 2 uses one weight from 0 to 1.
Blend along one or two axes Blend 1D, Blend Tree 2D, or a Blend Space asset and node.
Switch poses from a variable Select Blend.
Put a layer on selected bones Layered Blend and a bone mask.
Add a difference to a base pose Apply Additive. Create the difference with clip settings or a make-additive node.
Aim a character Aim Offset for directional samples, or Look At for one bone.
Share a calculated pose in the graph Save Cached Pose and Use Cached Pose.
Change pose with states and rules State Machine.
Play an action from code Slot. Prepare the clip or montage before playback.
Reach a point or edit a bone Two Bone IK, FABRIK, Bone Modify, or Copy Bone.
Test a number or combine conditions Compare, And, Or, and Not.

For Clip, Clip Pose, Blend Space, and Blend Space Pose you can set the asset in Details. Turn on Show as Pin when you need a connection for that asset.

Set additive clip type and reference pose in the clip's Additive settings. To keep both additive and ordinary versions, use separate clips.

A first Blend Space and mask

  1. Select the saved rig in Project. Open Tools > Burst Animation System > Create > Blend Space.
  2. Select the correct rig type and root. Set Dimensions to one. Name the asset Locomotion and set Save folder.
  3. Open the asset in the Blend Space Editor. Add compatible Idle, Walk, and Run clips as samples. Assign their X positions as 0, 1, and 2. If the axis range is too small, use Use the sample range.
  4. Save the asset. Add Blend Space to a graph and assign the asset in Details. Connect its pose to Output Pose.
  5. Add a Float variable named Speed and connect its getter to the X input. Keep the node's playback speed at 1.
  6. Save the graph. In preview, set the Speed variable to 0, 1, and 2, then try values between those points. Check that the timeline advances.

You can also start from an empty Blend Space node. Open its asset creation action to start with that node's graph rig and dimensions.

For an upper-body layer, add Layered Blend. Put locomotion on its base input and an upper-body pose on a layer input. In the mask picker, include the upper-body bones. Check View effective mask. Start at weight 0 and increase it. Watch the shoulder and spine.

Find an asset tool

Tool or asset Use
Clip Editor Inspect a clip and edit clip settings, curves, and notifies.
Blend Space Editor Set sample coordinates and preview their blend.
Aim Offset Editor Set frozen additive samples at directions.
Montage Editor Set tracks, segments, sections, and notifies.
Animation Registry Check play names, rigs, and graphs for shared animations.
Project Slot List Manage the names used by Slot nodes and montage tracks.
Skeleton Inspect the rig and edit its supported sockets and virtual bones.
Animation Overrides Prepare variants for exposed clip, blend space, and aim offset fields.
Runtime Build Content Declare items that code loads and the build scenes do not reference.

Use Graph Settings > Preparation for the graph's Skeleton. Use Open Skeleton to inspect an existing one or Create Skeleton to add a missing one. Use the installed product guide for runtime sockets and virtual bones.

Find a fault

Symptom First checks
No motion in preview Check the clip, speed, Output Pose connection, and Problems.
C# source out of date Read the toolbar warning. Select Repair C# and wait for Unity to compile.
Preview works but scene does not Check Graph Animator Status, the assigned graph, and other animation writers.
Preview shows no model Check Character Model and Preview Model, then select Frame.
Humanoid stays in a T-pose Check the two Avatars, clip source, and rig status.
A Generic bone stays still Compare the clip's full path with the scene hierarchy.
A variable has no effect Check the getter, exact name, type, and writer.
A state never changes Check the default state, transition direction, and rule.
A slot cannot play an action Check the slot name, Bake for, Shared Animations, and preparation.
Game view is empty Check Main Camera position, angle, and culling.
A new computer reports missing data Restore the source assets and saved Skeleton data. Compile or save the graph to prepare local samples again.

Start with a single Clip connected to Output Pose. Add each part again after basic playback works. Read the first relevant problem message.

Save your work

Keep the graph, scene, models, clips, and Skeleton assets with your project. Unity can rebuild generated pose samples from those files. Keep personal preview settings and local samples out of source control.

Before a Player build, save changes and resolve errors from Compile and Set Up Character. If you load content from code, declare it in Runtime Build Content where required and use your own loading code. Check the finished Player on its intended target.

Learn more in the installed package

Open BAS in the Project window and find its Documentation folder.