Internal function for construction.
Optionaluuid: UUIDOptionalisInternalConstructor: booleanYou should never override the constructor for resources. Always rely on onCreate or onInitialize to initialize your resource.
Protected_ReadonlycommentsAll GraphComment objects to display in the editor for this Graph
The status of the validation, undefined until validate was called.
ReadonlynodesAll GraphNode objects registerded with this graph.
ReadonlyuserA Map suitable for storing custom user-defined data.
The status of the validation since the last call to validate.
ReadonlyvariablesAll GraphVariable objects registered with this graph.
ReadonlyviewportDetermines the panning position of the user has last moved the graph canvas to.
Determines the zoom scale of the user has the graph canvas at.
Static ReadonlycontrolStatic ReadonlycontrolReturns a resource handle.
Returns the meta data of this resource.
Name of the resource. Use primarily for easier identification and not important to the engine itself.
Returns a universally unique identifier of this resource.
Virtual
Gets the default type of a newly constructed variable getter.
Virtual
Gets the default type of a newly constructed variable setter.
Adds the specified GraphConnection.
The connection will be registered with both the input and output GraphPin. Before the connection is registered onFilterAddConnection will be invoked to allow the graph to dynamically replace the connection.
Adds the specified GraphVariable.
The variable to add.
true if the variable was added, false on error.
Duplicates the resource and creates a unique UUID for the duplicated resource.
The duplicated resource or null, if the duplication failed.
ProtectedenableInvoken when the graph was deserialized and objects need to be enabled. This typically entails restoring object pointers that cannot be serialized.
Executes the node of the specified type and controlFlowData.
OptionalwarnNotFound: booleanExecutes the node.
The node to execute.
The visiting connection from the preivous node.
The control flow data.
Executes the specified root node in the graph with the controlFlowData.
The root node to execution or a connection to execute as root. When a ControlFlowNodeBase is specified, the node is immediately executed as the first node. When a GraphConnection is specified, the node that is connected to the connections input pin is executed as the first node.
The control flow data for the current execution.
Each call to executeNode returns the next connection to be executed.
The execution will run until null is returned.
Gets the variable with the specified name.
Gets the GraphComment with the specified title or UUID.
Gets all nodes of the specified type.
Method that must be called whenever the Graph is dirtied.
Optionalflags: EnumValue<GraphNodeDirtyFlags>Removes all persisted GraphVariable data from variableValues that have been
removed or are no longer public.
The persistent variable values that will be modified.
Changes the default value of a variable.
OptionalforceUpdate: booleanForcefully unloads the resource.
ReadonlyonAn event called when a change on the graph was made.
ReadonlyonAn event called when a change on the graph was made.
ReadonlyonAn event called whenever a new GraphNode is added.
ReadonlyonAn event called whenever a GraphNode is removed.
ReadonlyonAn event called whenever a new connection was made.
ReadonlyonAn event called whenever a connection is removed.
ReadonlyonAn event called whenever a new GraphVariable is added.
ReadonlyonAn event called whenever a new GraphVariable was removed.
ReadonlyonAn event called whenever a new GraphVariable was changed, e.g. name, type or meta-data.
ReadonlyonAn event called whenever a new GraphVariable was default value changed.
ReadonlyonAn event called whenever a new GraphComment is added.
ReadonlyonAn event called whenever a new GraphComment was removed.
ReadonlyonAn event called whenever validation resulted in errors.
ReadonlyonAn event called whenever a connection was visited by the execution.
ReadonlyonAn event called whenever a root node was visited by the execution.
The ControlFlowGraph extends the Graph class by implemeting a control flow graph. The class can host and execute nodes subclassing from ControlFlowNodeBase.
Note
The control flow graph controls the execution order of nodes, where the execution can loop, switch or take conditional branches. ControlFlowNodeBase nodes may contain any number of control-flow pins and decide which path to take upon execution.