API

Class FlowGraphSetPropertyBlock<P, O>

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.

Type Parameters

Hierarchy (View Summary)

Index

the configuration of the block

customSetFunction: FlowGraphDataConnection<
    (
        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.

object: FlowGraphDataConnection<AssetType<O>>

Input connection: The target asset from which the property will be retrieved

propertyName: FlowGraphDataConnection<string>

Input connection: The name of the property that will be set

value: FlowGraphDataConnection<P>

Input connection: The value to set on the property.