The most important component of FlowCanvas, is the FlowScriptController component. As the name suggests, this component is responsible for controlling a flowscript and you have to add it on a game object that you wish to be controlled by a flowscript. Although this is not really mandatory, it’s the easiest and the most suggested way to get started quickly. Once you have added the FlowScriptController component on a game object, you will notice that another component named “Blackboard” is also added. This is the place you will be creating variables, but more on these variables will be explained later on.
The FlowScriptController needs to be assigned a FlowScript or alternatively, you can click the “Create New” button to create and assign one now. An option will pop up, asking you if you want to create a Bound or an Asset graph.
Creating a Bound graph is the recommended type in most cases, but don’t worry about it too much because you are able to convert between the two at any time you wish.
Once you have created a flowscript through the button, the graph editor will show up immediately. The FlowScriptController inspector has a number of options that you can set however.
© Paradox Notion 2015-2024. All rights reserved.