Quick Start
Here is an example of using Flow to output a "Hello World" message.
Create
MyFlowObject.csand derive it fromFlowGraphObject.Add a
Startmethod to the newly created class so that Unity can call this method when the game starts.Mark
Startwith[ImplementableEvent]so the graph can implement it.
using Ceres.Flow;
using Ceres.Flow.Annotations;
public class MyFlowObject: FlowGraphObject
{
[ImplementableEvent]
private void Start()
{
}
}
Now create a new GameObject in the scene and attach
MyFlowObjectcomponent to it.Click
Open Flow Graphin the Inspector panel to open the Flow Graph Editor.
Right-click the graph, then select
Create Node > Select Events > Implement Start.
Open
Create Node, search forLog String, and connect theStartexecution output to it.Fill in "Hello World!" in the
In Stringfield of theLog Stringnode.
Save the graph from the toolbar.
Play the game and you will see "Hello World!" in the console.
Related guides
- Learn about Flow Concept to understand Flow's architecture
- Explore Executable Events for different event types
- Check Executable Functions for exposing C# methods to Flow
- See Runtime Architecture for container types and usage patterns