Class FlowGraphSceneReadyEventBlock
Hierarchy (View Summary)
- FlowGraphEventBlock
- FlowGraphSceneReadyEventBlock
Constructors
constructor
-
Returns FlowGraphSceneReadyEventBlock
Properties
Optionalconfig
the configuration of the block
data Inputs
The data inputs of the block.
data Outputs
The data outputs of the block.
done
Output connection: The signal that is triggered when the asynchronous execution of this block is done.
Readonlyerror
An output connection that can be used to signal an error, if the block defines it.
Readonlyevent Ref
Output: the opaque reference identifying this event source.
All instances of this block share the same reference, so comparing the event output of two
of them for equality succeeds. The reference format is owned by the host environment.
Readonlyin
Input connection: The input signal of the block.
init Priority
the priority of initialization of this block. For example, scene start should have a negative priority because it should be initialized last.
metadata
Metadata that can be used by the block.
name
The name of the block.
Readonlyout
Output connection: The signal that is synchronous triggered when the execution of this block is done.
Note that is case of events or async you might want to use the done signal instead.
Readonlypriority
The priority of the block. Higher priority blocks will be executed first. Note that priority cannot be change AFTER the block was added as sorting happens when the block is added to the execution queue.
signal Inputs
Input connections that activate the block.
signal Outputs
Output connections that can activate downstream blocks.
Readonlytype
The type of the event
unique Id
A randomly generated GUID for each block.
Methods
_ cancel Pending Tasks
-
Parameters
- context: FlowGraphContext
Returns void
_ execute Event
-
Execute the event. This function should be called by the flow graph when the event is triggered.
Parameters
- context: FlowGraphContext
the context in which the event is executed
- _payload: any
Returns boolean
a boolean indicating if the event should stop propagation. if false, the event will stop propagating.
- context: FlowGraphContext
_ reset After Canceled
-
Parameters
- context: FlowGraphContext
Returns void
deserialize
-
Deserializes from an object. Filters out the legacy "in" signal input that existed before event blocks stopped exposing it, so old serialized graphs load without error.
Parameters
- serializationObject: any
the object to deserialize from
Returns void
- serializationObject: any
get Class Name
-
Returns FlowGraphBlockNames
class name of the block.
get Data Input
-
Given the name of a data input, returns the connection if it exists
Parameters
- name: string
the name of the input
Returns FlowGraphDataConnection<any> | undefined
the connection if it exists, undefined otherwise
- name: string
get Data Output
-
Given the name of a data output, returns the connection if it exists
Parameters
- name: string
the name of the output
Returns FlowGraphDataConnection<any> | undefined
the connection if it exists, undefined otherwise
- name: string
get Signal Input
-
Given a name of a signal input, return that input if it exists
Parameters
- name: string
the name of the input
Returns FlowGraphSignalConnection | undefined
if the input exists, the input. Otherwise, undefined.
- name: string
get Signal Output
-
Given a name of a signal output, return that input if it exists
Parameters
- name: string
the name of the input
Returns FlowGraphSignalConnection | undefined
if the input exists, the input. Otherwise, undefined.
- name: string
register Data Input
-
registerDataInput<T>(
name: string,
richType: RichType<T>,
defaultValue?: T,
): FlowGraphDataConnection<T>Registers a data input on the block.
Type Parameters
- T
Parameters
Returns FlowGraphDataConnection<T>
the created connection
register Data Output
-
registerDataOutput<T>(
name: string,
richType: RichType<T>,
defaultValue?: T,
): FlowGraphDataConnection<T>Registers a data output on the block.
Type Parameters
- T
Parameters
Returns FlowGraphDataConnection<T>
the created connection
serialize
-
Serializes this block
Parameters
- serializationObject: any = {}
the object to serialize in
Returns void
- serializationObject: any = {}
Block that triggers when a scene is ready.