Build a Working Result
Build Your First Flow
Make a Cube grow when Play Mode starts by combining a graph, process, Blackboard, Trigger, and Action.
- Audience
- New to Flow Core
- Time
- 10–15 minutes
- Requires
- A writable Unity scene
- Modules
- Flow Core
On this page
Create a Cube that changes from scale (1, 1, 1) to (2, 2, 2) when Play Mode starts. This result exercises the complete Flow Core loop without requiring C#.
What you will build
Before (left): scale (1, 1, 1). After (right): scale (2, 2, 2) in Play Mode.
Create the scene owner
- Create a Cube and name it
Growing Cube. - Keep its Transform scale at
(1, 1, 1). - Add a
FlowCoreProcesscomponent. - Add a
Blackboardcomponent to the same GameObject.
Keeping the process, Blackboard, and visible object together makes the first runtime ownership path easy to inspect.
The visible object also owns its process and typed data.
Create and assign the graph
- In the Project window, use
Create > Flow Core > Flow Graph. - Name the asset
GrowCubeFlow. - Select
Growing Cube. In the Graph section ofFlowCoreProcess, set Storage Mode to Asset and dragGrowCubeFlowinto Graph Asset.
The graph stores authored nodes and connections. Assigning it to the process creates the scene relationship that will build a runtime instance.
Add the typed value
- In the Cube’s
Blackboardcomponent, choose Open Full Configuration. Select Variables, then Edit. - Choose Add Entry and search for
Vector3. Select that type, name the new keyTargetScale, and set its X, Y, and Z values to2. - Return to the Cube’s
FlowCoreProcesscomponent and choose Open Full Configuration. Select Blackboards and add the Cube’s Blackboard to the first slot in Local Blackboards. The Instruction will read this slot as index0.
The Blackboard holds the three scale values. The process’s first Local Blackboards slot points to the component that owns them.
Add the Start Trigger
- Choose Open Graph on the Cube’s
FlowCoreProcessto openGrowCubeFlow. - Set Debug Context to
Growing Cube. - Right-click empty canvas space, choose Create Node…, and add a Trigger.
- Select the Trigger on the canvas. In the Flow Inspector, set Bus to Unity and Unity Event to Start.
Unity will publish this lifecycle event after the process builds its runtime in Play Mode.
Add the scaling Action
- Add an
Actionnode. - Connect
Trigger.OuttoAction.In. - Select the Action on the canvas. In its empty instruction list, choose Add instruction and search for
Set LocalScale. Select the entry inTransform/GameObject. - Select the
Set LocalScalerow to see its Parameters in the Flow Inspector. Under Instance, keep the default Payload source and Self payload mode. Keep the component Scope set to Self. This selects the Cube’s own Transform. - Open the binding control beside Value. Choose Flow Core Process as the source. Set the Blackboard scope to Local, leave the index at
0, and set the key toTargetScale. Choose Apply to return to the Instruction. Back takes you to the owning Action.
The screenshot uses the optional node titles Start and Grow Cube. Your Trigger and Action can keep their default titles. Follow the wire from the Trigger’s output to the Action’s input.
On the left, the selected Instruction shows which object to scale and where its value comes from. On the right, the Value editor shows the Local Blackboard at index 0 and the TargetScale key. Apply saves this binding.
If the Flow Inspector is pinned to another node, unlock it before selecting the Action. From the Action’s instruction list, More > Open Editor opens the same Instruction in a dedicated editor.
Verify the result
- Save the scene and graph.
- Select
Growing Cubeand confirm its scale is(1, 1, 1)before Play Mode. - Enter Play Mode.
- Confirm its Transform scale becomes
(2, 2, 2). - Exit Play Mode and confirm the authored Transform returns to
(1, 1, 1).
Common Mistakes
| Symptom | Check |
|---|---|
| The Cube does not change | Confirm GrowCubeFlow is assigned to FlowCoreProcess and the component is enabled. |
| The Trigger does not run | Confirm the bus is Unity and the selected event is Start. |
| The Action does not run | Confirm Trigger.Out is connected to Action.In. |
| Scale becomes the wrong value | Confirm TargetScale is a Vector3 at Local index 0. |
| The target cannot resolve | Set Instance Source to Payload and Payload Mode to Self; keep component Scope on Self. |
| Editor summaries are unresolved | Set Debug Context to Growing Cube. |
What You Built
You authored behavior in a Flow Graph, gave that graph a scene runtime through FlowCoreProcess, stored configuration in a typed Blackboard, started a chain from a Unity Trigger, and used an Action to change a Unity component.
Change TargetScale to (1, 3, 1) and run the scene again. The visible result should change without editing graph topology.
Optional video from an earlier editor
This 73-second recording shows a different first graph. A Unity Update Trigger runs an Action that rotates a cube. The footage uses an earlier editor layout. Use the steps and screenshots above for the current controls and the Growing Cube exercise.




