-
Notifications
You must be signed in to change notification settings - Fork 293
flow_commands
Force a loop to terminate immediately.
Defined in Fungus.Break
Execute another block in the same Flowchart as the command, or in a different Flowchart.
Defined in Fungus.Call
Property | Type | Description |
---|---|---|
Target Flowchart | Fungus.Flowchart | Flowchart which contains the block to execute. If none is specified then the current Flowchart is used. |
Target Block | Fungus.Block | Block to start executing |
Start Label | Fungus.StringData | Label to start execution at. Takes priority over startIndex. |
Start Index | System.Int32 | Command index to start executing |
Call Mode | Fungus.CallMode | Select if the calling block should stop or continue executing commands, or wait until the called block finishes. |
Marks the start of a command block to be executed when the preceding If statement is False.
Defined in Fungus.Else
Marks the start of a command block to be executed when the preceding If statement is False and the test expression is true.
Defined in Fungus.ElseIf
Property | Type | Description |
---|---|---|
Any Or All Conditions | Fungus.VariableCondition+AnyOrAll | Selecting AnyOf will result in true if at least one of the conditions is true. Selecting AllOF will result in true only when all the conditions are true. |
Variable | Fungus.Variable | Variable to use in expression |
Boolean Data | Fungus.BooleanData | Boolean value to compare against |
Integer Data | Fungus.IntegerData | Integer value to compare against |
Float Data | Fungus.FloatData | Float value to compare against |
String Data | Fungus.StringDataMulti | String value to compare against |
Animator Data | Fungus.AnimatorData | Animator value to compare against |
Audio Source Data | Fungus.AudioSourceData | AudioSource value to compare against |
Color Data | Fungus.ColorData | Color value to compare against |
Game Object Data | Fungus.GameObjectData | GameObject value to compare against |
Material Data | Fungus.MaterialData | Material value to compare against |
Object Data | Fungus.ObjectData | Object value to compare against |
Rigidbody2 D Data | Fungus.Rigidbody2DData | Rigidbody2D value to compare against |
Sprite Data | Fungus.SpriteData | Sprite value to compare against |
Texture Data | Fungus.TextureData | Texture value to compare against |
Transform Data | Fungus.TransformData | Transform value to compare against |
Vector2 Data | Fungus.Vector2Data | Vector2 value to compare against |
Vector3 Data | Fungus.Vector3Data | Vector3 value to compare against |
Marks the end of a conditional block.
Defined in Fungus.End
Loop over a fixed integer range, similar to a common for loop.
Defined in Fungus.LoopRange
Property | Type | Description |
---|---|---|
Starting Value | Fungus.IntegerData | Starting value for the counter variable |
End Value | Fungus.IntegerData | End value for the counter variable, exclusive |
Counter | Fungus.IntegerData | Optional int var to hold the current loop counter. |
Step | Fungus.IntegerData | Step size for the counter, how much does it go up by each loop. Default 1 |
If the test expression is true, execute the following command block.
Defined in Fungus.If
Property | Type | Description |
---|---|---|
Any Or All Conditions | Fungus.VariableCondition+AnyOrAll | Selecting AnyOf will result in true if at least one of the conditions is true. Selecting AllOF will result in true only when all the conditions are true. |
Variable | Fungus.Variable | Variable to use in expression |
Boolean Data | Fungus.BooleanData | Boolean value to compare against |
Integer Data | Fungus.IntegerData | Integer value to compare against |
Float Data | Fungus.FloatData | Float value to compare against |
String Data | Fungus.StringDataMulti | String value to compare against |
Animator Data | Fungus.AnimatorData | Animator value to compare against |
Audio Source Data | Fungus.AudioSourceData | AudioSource value to compare against |
Color Data | Fungus.ColorData | Color value to compare against |
Game Object Data | Fungus.GameObjectData | GameObject value to compare against |
Material Data | Fungus.MaterialData | Material value to compare against |
Object Data | Fungus.ObjectData | Object value to compare against |
Rigidbody2 D Data | Fungus.Rigidbody2DData | Rigidbody2D value to compare against |
Sprite Data | Fungus.SpriteData | Sprite value to compare against |
Texture Data | Fungus.TextureData | Texture value to compare against |
Transform Data | Fungus.TransformData | Transform value to compare against |
Vector2 Data | Fungus.Vector2Data | Vector2 value to compare against |
Vector3 Data | Fungus.Vector3Data | Vector3 value to compare against |
Move execution to a specific Label command in the same block
Defined in Fungus.Jump
Property | Type | Description |
---|---|---|
_target Label | Fungus.StringData | Name of a label in this block to jump to |
Marks a position in the command list for execution to jump to.
Defined in Fungus.Label
Property | Type | Description |
---|---|---|
Key | System.String | Display name for the label |
Loads a new Unity scene and displays an optional loading image. This is useful for splitting a large game across multiple scene files to reduce peak memory usage. Previously loaded assets will be released before loading the scene to free up memory.The scene to be loaded must be added to the scene list in Build Settings.
Defined in Fungus.LoadScene
Property | Type | Description |
---|---|---|
_scene Name | Fungus.StringData | Name of the scene to load. The scene must also be added to the build settings. |
Loading Image | UnityEngine.Texture2D | Image to display while loading the scene |
Loop over a fixed integer range, similar to a common for loop.
Defined in Fungus.LoopRange
Property | Type | Description |
---|---|---|
Starting Value | Fungus.IntegerData | Starting value for the counter variable |
End Value | Fungus.IntegerData | End value for the counter variable, exclusive |
Counter | Fungus.IntegerData | Optional int var to hold the current loop counter. |
Step | Fungus.IntegerData | Step size for the counter, how much does it go up by each loop. Default 1 |
Marks the start of a command block to be executed when the preceding If statement is False and the test expression is true.
Defined in Fungus.LuaElseIf
Property | Type | Description |
---|---|---|
Lua Environment | Fungus.LuaEnvironment | Lua Environment to use to execute this Lua script (null for global) |
Lua Compare String | System.String | The lua comparison string to run; implicitly prepends 'return' onto this |
If the test expression is true, execute the following command block.
Defined in Fungus.LuaIf
Property | Type | Description |
---|---|---|
Lua Environment | Fungus.LuaEnvironment | Lua Environment to use to execute this Lua script (null for global) |
Lua Compare String | System.String | The lua comparison string to run; implicitly prepends 'return' onto this |
Quits the application. Does not work in Editor or Webplayer builds. Shouldn't generally be used on iOS.
Defined in Fungus.Quit
Creates a Save Point and adds it to the Save History. The player can save the Save History to persistent storage and load it again later using the Save Menu.
Defined in Fungus.SavePoint
Property | Type | Description |
---|---|---|
Is Start Point | System.Boolean | Marks this Save Point as the starting point for Flowchart execution in the scene. Each scene in your game should have exactly one Save Point with this enabled. |
Key Mode | Fungus.SavePoint+KeyMode | How the Save Point Key for this Save Point is defined. |
Custom Key | System.String | A string key which uniquely identifies this save point. |
Key Separator | System.String | A string to seperate the block name and custom key when using KeyMode.Both. |
Description Mode | Fungus.SavePoint+DescriptionMode | How the description for this Save Point is defined. |
Custom Description | System.String | A short description of this save point. |
Fire Event | System.Boolean | Fire a Save Point Loaded event when this command executes. |
Resume On Load | System.Boolean | Resume execution from this location after loading this Save Point. |
Sends a message to either the owner Flowchart or all Flowcharts in the scene. Blocks can listen for this message using a Message Received event handler.
Defined in Fungus.SendMessage
Property | Type | Description |
---|---|---|
Message Target | Fungus.MessageTarget | Target flowchart(s) to send the message to |
_message | Fungus.StringData | Name of the message to send |
Stop executing the Block that contains this command.
Defined in Fungus.Stop
Stops executing the named Block
Defined in Fungus.StopBlock
Property | Type | Description |
---|---|---|
Flowchart | Fungus.Flowchart | Flowchart containing the Block. If none is specified, the parent Flowchart is used. |
Block Name | Fungus.StringData | Name of the Block to stop |
Stops execution of all Blocks in a Flowchart
Defined in Fungus.StopFlowchart
Property | Type | Description |
---|---|---|
Stop Parent Flowchart | System.Boolean | Stop all executing Blocks in the Flowchart that contains this command |
Target Flowcharts | System.Collections.Generic.List`1[Fungus.Flowchart] | Stop all executing Blocks in a list of target Flowcharts |
Waits for period of time before executing the next command in the block.
Defined in Fungus.Wait
Property | Type | Description |
---|---|---|
_duration | Fungus.FloatData | Duration to wait for |
Waits for a number of frames before executing the next command in the block.
Defined in Fungus.WaitFrames
Property | Type | Description |
---|---|---|
Frame Count | Fungus.IntegerData | Number of frames to wait for |
Continuously loop through a block of commands while the condition is true. Use the Break command to force the loop to terminate immediately.
Defined in Fungus.While
Property | Type | Description |
---|---|---|
Any Or All Conditions | Fungus.VariableCondition+AnyOrAll | Selecting AnyOf will result in true if at least one of the conditions is true. Selecting AllOF will result in true only when all the conditions are true. |
Variable | Fungus.Variable | Variable to use in expression |
Boolean Data | Fungus.BooleanData | Boolean value to compare against |
Integer Data | Fungus.IntegerData | Integer value to compare against |
Float Data | Fungus.FloatData | Float value to compare against |
String Data | Fungus.StringDataMulti | String value to compare against |
Animator Data | Fungus.AnimatorData | Animator value to compare against |
Audio Source Data | Fungus.AudioSourceData | AudioSource value to compare against |
Color Data | Fungus.ColorData | Color value to compare against |
Game Object Data | Fungus.GameObjectData | GameObject value to compare against |
Material Data | Fungus.MaterialData | Material value to compare against |
Object Data | Fungus.ObjectData | Object value to compare against |
Rigidbody2 D Data | Fungus.Rigidbody2DData | Rigidbody2D value to compare against |
Sprite Data | Fungus.SpriteData | Sprite value to compare against |
Texture Data | Fungus.TextureData | Texture value to compare against |
Transform Data | Fungus.TransformData | Transform value to compare against |
Vector2 Data | Fungus.Vector2Data | Vector2 value to compare against |
Vector3 Data | Fungus.Vector3Data | Vector3 value to compare against |
Auto-Generated by Fungus.ExportReferenceDocs