Skip to main content
Flow Core Documentation
Menu

Build a Working Result

Explore a Working Flow

Run the supplied Flow example and trace a visible event through its graph.

Audience
All developers
Time
5 minutes
Requires
Flow Core installed with examples
Modules
Flow Core
On this page

Open a supplied scene before building anything. The goal is to see how a scene object, a Flow Graph, Triggers, Actions, and Blackboard data cooperate while the game is running.

Open the example

  1. Save any scene changes you want to keep.
  2. Search the Project window for the scene named 2.Flow Example.
  3. Open the scene and allow Unity to finish importing or compiling any dependencies.
  4. Open the Game view and the Console.
  5. Enter Play Mode.
Image 01_02_01Screenshot production note

此处插图应该是 2.Flow Example 场景进入 Play Mode 后的 Unity Game 视图截图;保留场景内可操作的按钮、输入或切换控件,并框选一个接下来要触发的交互。

Interact with the visible controls. Watch for a change in the Game view, Inspector, or Console. The exact control is less important than the relationship: a Unity event starts a chain, graph nodes route the chain, and an Action performs the result.

Find the runtime owner

  1. In the Hierarchy, select an object that owns the demonstrated behavior.
  2. Locate its FlowCoreProcess component.
  3. Note the assigned Flow Graph and any Local Blackboards.
  4. Open the assigned graph.

The graph asset describes behavior. FlowCoreProcess owns the runtime instance for this scene object. Two objects can use the same graph asset while keeping separate runtime state and Local Blackboard bindings.

Image 01_02_02Screenshot production note

此处插图应该是示例对象 Inspector 中 FlowCoreProcess 的截图;保留已分配的 Flow Graph、Local Blackboards 列表和组件标题,并分别框选 Graph 与 Blackboard 绑定。

Trace one chain

In the Flow Graph Editor, set Debug Context to the scene object you selected. Trigger the same interaction again and watch the graph.

Trace these stages:

  1. A Trigger receives the Unity or UI event.
  2. An output port routes the event into another node.
  3. A running execution chain moves through the connection.
  4. An Action or module node produces an observable result.
  5. Any bound values resolve against the selected process and its Blackboards.
Image 01_02_03Screenshot production note

此处插图应该是 Play Mode 中 Flow Graph Editor 的运行调试截图;保留 Debug Context、刚触发的 Trigger、移动中的连接高亮和执行结果节点,并用箭头标出链的方向。

Change one value

If the example exposes a safe Blackboard value, change it in the Inspector and repeat the same interaction. Observe whether the graph structure remains unchanged while the result changes. This is the core authoring split: graphs define behavior; typed data supplies configuration and state.

Common mistakes

SymptomCheck
The scene does nothingConfirm Unity is in Play Mode and the selected example control is interactive.
The graph shows no runtime highlightSet Debug Context to the exact GameObject whose FlowCoreProcess received the event.
The Inspector and graph disagreeConfirm you opened the graph assigned to the selected process.
A changed value has no effectVerify the node reads that Blackboard scope, index, key, and type.

What You Built

You built a runtime map of the supplied example: scene owner, assigned graph, start point, execution route, value source, and visible result. Use the same map whenever you open an unfamiliar Flow Core graph.

What the example demonstrated:

  • A Flow Graph is authored once and instantiated by a scene process.
  • Triggers and Entries start execution chains.
  • Ports and connections define routes through the graph.
  • Blackboard values remain separate from graph topology.
  • Debug Context selects which runtime instance the editor explains.

Build the same loop yourself in Build Your First Flow.