Search Results for

    Show / Hide Table of Contents

    Quick Start

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

    1. Ceate a new C# script MyFlowObject.cs and make it inherit from FlowGraphObject.

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

    3. Add ImplementableEventAttribute to Start method so that we can implement its logic in Flow Graph.

    using Ceres.Graph.Flow;
    using Ceres.Graph.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 graph and click Create Node/Select Events/Implement Start.

      Create Node

    4. Then click Create Node and search Log String, connect the white port (exec) to the Start node's output (exec).

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

      Log String

    6. Click save button in the left upper corner.

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

    • Improve this Doc
    In This Article
    Back to top Copyright © 2025 AkiKurisu
    Generated with DocFX