Class FlowGraphSetPropertyBlock<P, O>
Type Parameters
- P extends any
- O extends WebXRSpatialLayerType
Hierarchy (View Summary)
- WebXRSpatialLayerType
- FlowGraphSetPropertyBlock
Constructors
constructor
-
new FlowGraphSetPropertyBlock<P extends unknown, O extends FlowGraphAssetType>(
config: IFlowGraphSetPropertyBlockConfiguration<O>,
): FlowGraphSetPropertyBlock<P, O>Type Parameters
- P extends unknown
- O extends FlowGraphAssetType
Parameters
- config: IFlowGraphSetPropertyBlockConfiguration<O>
the configuration of the block
Returns FlowGraphSetPropertyBlock<P, O>
Properties
config
the configuration of the block
Readonlycustom Set Function
customSetFunction: FlowGraphDataConnection<
(
target: AssetType<O>,
propertyName: string,
value: P,
context: FlowGraphContext,
) => void,
>
(
target: AssetType<O>,
propertyName: string,
value: P,
context: FlowGraphContext,
) => void,
>
Input connection: A function that can be used to set the value of the property. If set it will be used instead of the default set function.
Readonlyobject
Input connection: The target asset from which the property will be retrieved
Readonlyproperty Name
propertyName: FlowGraphDataConnection<string>
Input connection: The name of the property that will be set
Readonlyvalue
Input connection: The value to set on the property.
This block will set a property on a given target asset. The property name can include dots ("."), which will be interpreted as a path to the property. The target asset is an input and can be changed at any time. The value of the property is an input and can be changed at any time.
For example, with an input of a mesh asset, the property name "position.x" will set the x component of the position of the mesh.
Note that it is recommended to input the object on which you are working on (i.e. a material) than providing a mesh and then getting the material from it.