Class FlowGraphConstantBlock<T>
Type Parameters
- T
Hierarchy (View Summary)
- WebXRSpatialLayerType
- FlowGraphConstantBlock
Index
Constructors
constructor
-
new FlowGraphConstantBlock<T>(
config: IFlowGraphConstantBlockConfiguration<T>,
): FlowGraphConstantBlock<T>Type Parameters
- T
Parameters
- config: IFlowGraphConstantBlockConfiguration<T>
the configuration of the block
Returns FlowGraphConstantBlock<T>
Properties
config
the configuration of the block
Readonlyoutput
Output connection: The constant value.
Methods
_ update Outputs
-
Parameters
- context: FlowGraphContext
Returns void
get Class Name
-
Gets the class name of this block
Returns string
the class name
serialize
-
serialize(
serializationObject?: any,
valueSerializeFunction?: (
key: string,
value: any,
serializationObject: any,
) => any,
): voidSerializes this block
Parameters
- serializationObject: any = {}
the object to serialize to
- valueSerializeFunction: (key: string, value: any, serializationObject: any) => any = defaultValueSerializationFunction
the function to use to serialize the value
Returns void
- serializationObject: any = {}
Block that returns a constant value.