API

Class FlowGraphGetPropertyBlock<P, O>

This block will deliver a property of an asset, based on the property name and an input asset. The property name can include dots ("."), which will be interpreted as a path to the property.

For example, with an input of a mesh asset, the property name "position.x" will deliver 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) rather than providing a mesh as object and then getting the material from it.

Type Parameters

Hierarchy

  • FlowGraphCachedOperationBlock<P>
    • FlowGraphGetPropertyBlock
Index

the configuration of the block

customGetFunction: FlowGraphDataConnection<
    (
        target: AssetType<O>,
        propertyName: string,
        context: FlowGraphContext,
    ) => P | undefined,
>

Input connection: A function that can be used to get the value of the property. This will be used if defined, instead of the default get function.

dataInputs: FlowGraphDataConnection<any>[]

The data inputs of the block.

dataOutputs: FlowGraphDataConnection<any>[]

The data outputs of the block.

isValid: FlowGraphDataConnection<boolean>

Output connection: Whether the value is valid.

metadata: any

Metadata that can be used by the block.

name: string

The name of the block.

object: FlowGraphDataConnection<AssetType<O>>

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

propertyName: FlowGraphDataConnection<string>

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

uniqueId: string = ...

A randomly generated GUID for each block.

The output of the operation

  • Serializes this block

    Parameters

    • serializationObject: any = {}

      the object to serialize to

    • _valueSerializeFunction: (key: string, value: any, serializationObject: any) => any = defaultValueSerializationFunction

      a function that serializes a specific value

    Returns void