Skip to main content
Version: 4.55.1

Nodes

Break

Breaks loop execution when executed within the body of any loop based node. For example: For, Foreach, and While nodes. Execution will continue as if all loops have completed.

Call External Execution

This node allows you to start execution on another script. When used in combination with a ScriptReference node you can select an Execution Input node from the inspector. Otherwise you must type the name of the function to call.

Callback

Represents a section of code that can be executed later, similar to a JavaScript function. Automatically adds argument ports to match the signature of any callback port it's connected to.

Callback Input

Adds an input for a callback into the sub-graph.

Constant Number

Constant Number value.

Constant Number array

Constant Number array value.

Constant Reference

Constant reference to a resource.

Constant bool

Constant bool value.

Constant bool array

Constant bool array value.

Constant mat2

Constant mat2 value.

Constant mat2 array

Constant mat2 array value.

Constant mat3

Constant mat3 value.

Constant mat3 array

Constant mat3 array value.

Constant mat4

Constant mat4 value.

Constant mat4 array

Constant mat4 array value.

Constant string

Constant string value.

Constant string array

Constant string array value.

Constant vec2

Constant vec2 value.

Constant vec2 array

Constant vec2 array value.

Constant vec3

Constant vec3 value.

Constant vec3 array

Constant vec3 array value.

Constant vec4

Constant vec4 value.

Constant vec4 array

Constant vec4 array value.

Construct Array

Creates a new array with an option in the inspector to choose the type it holds.

Construct Map

Creates a new map with an option in the inspector to choose the types it holds.

Continue

Continues to the next loop when executed within the body of any loop based node. For example: For, Foreach, and While nodes. Execution will continue on the next loop as if the current loop had completed.

[Custom Node](Custom Node/userNode.md)

Custom node defined by a JavaScript file.

Execute Callback

Executes a Callback node.

ExecutionInput

Creates an execution input to the graph. If used at the top level, adds a function to the script's api object.

ExecutionOutput

Adds an execution output port to the sub-graph.

For

Executes the Body execution port loopCount times, increasing Number each time. Number returns 0 on the first iteration, and increases by 1 on each iteration until it reaches loopCount-1 on the final loop. After all loops are completed, the Then port is executed.

Foreach

Executes the Body execution port once for each element of the array, providing the current element in the Object port. After all items have been iterated through, the Then port is executed.

Get Arguments

Needed for executing Execution flows that contain arguments. The output ports dynamically change to provide whatever arguments are carried on the execution flow.

Get External Variable

Get a variable from another script graph. If this is connected to a ScriptReference node you can select which variable from a drop down in the inspector, otherwise you must provide the variable name as a string. Tip: This can retrieve variables from the api object of JavaScript based scripts as well.

[Get Pass Property](Material Properties/Pass_property_get.md)

Returns the property with name propertyName found on the Pass.

[Get VFX Property](VFX Properties/VFX_property_get.md)

Gets a property from the VFXAsset. Tip: If connected to a Constant Asset Reference node created by dragging your VFXAsset into the graph you'll be able to select the property from a dropdown in the inspector.

Get Variable

Returns the current value of the variable. The variable can be changed in the node inspector panel.

If

Executes the True port if condition is true, and the False port if condition is false.

Iterator

Returns the next object in the array each time it's executed, looping back to the first object after reaching the end.

[Number Array Input](Basic Inputs/Number_array_input.md)

Adds an input for a number array value into the graph or sub-graph.

[Number Array Output](Basic Inputs/Number_array_output.md)

Outputs a number array from the sub-graph, creating an output port on it.

[Number Input](Basic Inputs/Number_input.md)

Adds an input for a number value into the graph or sub-graph.

[Number Output](Basic Inputs/Number_output.md)

Outputs a number from the sub-graph, creating an output port on it.

[Object Array Input](Basic Inputs/object_array_input.md)

Adds an input for an object array value into the graph or sub-graph.

[Object Array Output](Basic Inputs/object_array_output.md)

Outputs an object array from the sub-graph, creating an output port on it.

[Object Input](Basic Inputs/object_input.md)

Adds an input for an object value into the graph or sub-graph.

[Object Output](Basic Inputs/object_output.md)

Outputs an object from the sub-graph, creating an output port on it.

OnAwake

Initialization event. Executes once when the ScriptComponent hosting the script is initialized.

Passthrough

Small non-functional node used for organizing graphs. Can be created by clicking on any connection line.

Script Reference

This specialized node functions like a ScriptComponent input but allows you to specify a script graph which the ScriptComponent must be an instance of. This allows you to reference functions and variables from that script graph in this one. Tip: Try creating it by dragging a script graph asset into your graph.

Sequence

Executes each of the output ports in order. Useful for organizing a long sequence of nodes into more manageable sections.

Set External Variable

Set a variable on another script graph. If this is connected to a ScriptReference node you can select which variable from a drop down in the inspector, otherwise you must provide the variable name as a string. Tip: This can set variables on the api object of JavaScript based scripts as well.

[Set Pass Property](Material Properties/Pass_property_set.md)

Sets a property on the Pass to the given value.

[Set VFX Property](VFX Properties/VFX_property_set.md)

Sets a property on the VFXAsset. Tip: If connected to a Constant Asset Reference node created by dragging your VFXAsset into the graph you'll be able to select the property from a dropdown in the inspector.

Set Variable

Sets the variable to a new value. The variable can be changed in the node inspector panel.

Sub-Graph

Encapsulates a group of nodes into a single node with exposed imports and exports.

This Script

Returns the ScriptComponent hosting this script.

While

Continues to execute the Body port as long as condition is true. Once condition is false, the loop ends and the Then port is executed.

[bool Array Input](Basic Inputs/bool_array_input.md)

Adds an input for a bool array value into the graph or sub-graph.

[bool Array Output](Basic Inputs/bool_array_output.md)

Outputs a bool array from the sub-graph, creating an output port on it.

[bool Input](Basic Inputs/bool_input.md)

Adds an input for a bool value into the graph or sub-graph.

[bool Output](Basic Inputs/bool_output.md)

Outputs a bool value from the sub-graph, creating an output port on it.

[mat2 Array Input](Basic Inputs/mat2_array_input.md)

Adds an input for a mat2 array value into the graph or sub-graph.

[mat2 Array Output](Basic Inputs/mat2_array_output.md)

Outputs a mat2 array from the sub-graph, creating an output port on it.

[mat2 Input](Basic Inputs/mat2_input.md)

Adds an input for a mat2 value into the graph or sub-graph.

[mat2 Output](Basic Inputs/mat2_output.md)

Outputs a mat2 from the sub-graph, creating an output port on it.

[mat3 Array Input](Basic Inputs/mat3_array_input.md)

Adds an input for a mat3 array value into the graph or sub-graph.

[mat3 Array Output](Basic Inputs/mat3_array_output.md)

Outputs a mat3 array from the sub-graph, creating an output port on it.

[mat3 Input](Basic Inputs/mat3_input.md)

Adds an input for a mat3 value into the graph or sub-graph.

[mat3 Output](Basic Inputs/mat3_output.md)

Outputs a mat3 from the sub-graph, creating an output port on it.

[mat4 Array Input](Basic Inputs/mat4_array_input.md)

Adds an input for a mat4 array value into the graph or sub-graph.

[mat4 Array Output](Basic Inputs/mat4_array_output.md)

Outputs a mat4 array from the sub-graph, creating an output port on it.

[mat4 Input](Basic Inputs/mat4_input.md)

Adds an input for a mat4 value into the graph or sub-graph.

[mat4 Output](Basic Inputs/mat4_output.md)

Outputs a mat4 from the sub-graph, creating an output port on it.

[string Array Input](Basic Inputs/string_array_input.md)

Adds an input for a string array value into the graph or sub-graph.

[string Array Output](Basic Inputs/string_array_output.md)

Outputs a string array from the sub-graph, creating an output port on it.

[string Input](Basic Inputs/string_input.md)

Adds an input for a string value into the graph or sub-graph.

[string Output](Basic Inputs/string_output.md)

Outputs a string from the sub-graph, creating an output port on it.

[vec2 Array Input](Basic Inputs/vec2_array_input.md)

Adds an input for a vec2 array value into the graph or sub-graph.

[vec2 Array Output](Basic Inputs/vec2_array_output.md)

Outputs a vec2 array from the sub-graph, creating an output port on it.

[vec2 Input](Basic Inputs/vec2_input.md)

Adds an input for a vec2 value into the graph or sub-graph.

[vec2 Output](Basic Inputs/vec2_output.md)

Outputs a vec2 from the sub-graph, creating an output port on it.

[vec3 Array Input](Basic Inputs/vec3_array_input.md)

Adds an input for a vec3 array value into the graph or sub-graph.

[vec3 Array Output](Basic Inputs/vec3_array_output.md)

Outputs a vec3 array from the sub-graph, creating an output port on it.

[vec3 Input](Basic Inputs/vec3_input.md)

Adds an input for a vec3 value into the graph or sub-graph.

[vec3 Output](Basic Inputs/vec3_output.md)

Outputs a vec3 from the sub-graph, creating an output port on it.

[vec4 Array Input](Basic Inputs/vec4_array_input.md)

Adds an input for a vec4 array value into the graph or sub-graph.

[vec4 Array Output](Basic Inputs/vec4_array_output.md)

Outputs a vec4 array from the sub-graph, creating an output port on it.

[vec4 Input](Basic Inputs/vec4_input.md)

Adds an input for a vec4 value into the graph or sub-graph.

[vec4 Output](Basic Inputs/vec4_output.md)

Outputs a vec4 from the sub-graph, creating an output port on it.

Was this page helpful?
Yes
No