Blackboard
The blackboard is the list of Shared Variables available to a state machine. It lets states and actions use the same value, so one action can update information that another action reads without duplicating the data.
Create and assign a value
Create and organize variables in the Shared Variables pane. The example groups object and integer values for the Resource, Juice, and Club parts of the graph.

Select a compatible Shared Variable from a field in the Element Inspector. Here, the SetInteger action reads the Gather Animation Index variable for its Value.

Share the value at runtime
Every action field assigned to the same Shared Variable references the same value. In this example, the SetInt action stores 5 in Gather Animation Index. The SetInteger action shown above then reads that updated value.

Create a float Health variable in Graph scope with an initial value of 100. Bind Float 1 on both threshold Conditions to that same variable, while Float 2 supplies each literal threshold. The graph enters Flee at Health 25 and returns to Patrol at Health 40.



Keep each variable in the narrowest scope that needs it:
- Graph: Available to the current graph and appropriate for most variables.
- GameObject: Available to state machines on the same GameObject.
- Scene: Available to state machines in the same scene.
- Project: Available to state machines throughout the project.
Related: