Table of Contents

Quick Start

Here is an example of using Flow to output a "Hello World" message.

  1. Create MyFlowObject.cs and derive it from FlowGraphObject.

  2. Add a Start method to the newly created class so that Unity can call this method when the game starts.

  3. Mark Start with [ImplementableEvent] so the graph can implement it.

using Ceres.Flow;
using Ceres.Flow.Annotations;
public class MyFlowObject: FlowGraphObject
{
    [ImplementableEvent]
    private void Start()
    {

    }
}
  1. Now create a new GameObject in the scene and attach MyFlowObject component to it.

  2. Click Open Flow Graph in the Inspector panel to open the Flow Graph Editor.

    Open Flow Graph

  3. Right-click the graph, then select Create Node > Select Events > Implement Start.

    Create Node

  4. Open Create Node, search for Log String, and connect the Start execution output to it.

  5. Fill in "Hello World!" in the In String field of the Log String node.

    Log String

  6. Save the graph from the toolbar.

  7. Play the game and you will see "Hello World!" in the console.