API

Class FlowGraphPlayAnimationBlockExperimental

A block that plays an animation on an animatable object.

Hierarchy

  • FlowGraphAsyncExecutionBlock
    • FlowGraphPlayAnimationBlock
Index
animation: FlowGraphDataConnection<any>

Input: If provided this animation will be used. Priority will be given to the animation group input.

animationGroup: FlowGraphDataConnection<AnimationGroup>

Input: Will be initialized if no animation group was provided in the configuration.

the configuration of the block

currentAnimationGroup: FlowGraphDataConnection<AnimationGroup>

Output connection: The animatable that is currently running.

currentFrame: FlowGraphDataConnection<number>

Output connection: The current frame of the animation.

currentTime: FlowGraphDataConnection<number>

Output connection: The current time of the animation.

dataInputs: FlowGraphDataConnection<any>[]

The data inputs of the block.

dataOutputs: FlowGraphDataConnection<any>[]

The data outputs of the block.

Output connection: The signal that is triggered when the asynchronous execution of this block is done.

An output connection that can be used to signal an error, if the block defines it.

Input connection: The starting frame of the animation.

Input connection: The input signal of the block.

Input connection: Should the animation loop? Not in glTF specs, but useful for the engine.

metadata: any

Metadata that can be used by the block.

name: string

The name of the block.

Input connection: The target object that will be animated. If animation group is provided this input will be ignored.

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.

priority: number = 0

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.

Input connections that activate the block.

signalOutputs: FlowGraphSignalConnection[]

Output connections that can activate downstream blocks.

Input connection: The speed of the animation.

Input connection: The ending frame of the animation.

uniqueId: string = ...

A randomly generated GUID for each block.