Options
All
  • Public
  • Public/Protected
  • All
Menu

This defines an action responsible to change the value of a property by interpolating between its current value and the newly set one once triggered.

see

https://doc.babylonjs.com/features/featuresDeepDive/events/actions

Hierarchy

Index

Constructors

  • new InterpolateValueAction(triggerOptions: any, target: any, propertyPath: string, value: any, duration?: number, condition?: Condition, stopOtherAnimations?: boolean, onInterpolationDone?: (() => void)): InterpolateValueAction
  • Instantiate the action

    Parameters

    • triggerOptions: any

      defines the trigger options

    • target: any

      defines the object containing the value to interpolate

    • propertyPath: string

      defines the path to the property in the target object

    • value: any

      defines the target value at the end of the interpolation

    • Optional duration: number

      defines the time it will take for the property to interpolate to the value.

    • Optional condition: Condition

      defines the trigger related conditions

    • Optional stopOtherAnimations: boolean

      defines if the other scene animations should be stopped when the action has been triggered

    • Optional onInterpolationDone: (() => void)

      defines a callback raised once the interpolation animation has been done

        • (): void
        • Returns void

    Returns InterpolateValueAction

Properties

duration: number

Defines the time it will take for the property to interpolate to the value.

onBeforeExecuteObservable: Observable<Action>

An event triggered prior to action being executed.

onInterpolationDone?: (() => void)

Type declaration

    • (): void
    • Defines a callback raised once the interpolation animation has been done.

      Returns void

onInterpolationDoneObservable: Observable<InterpolateValueAction>

Observable triggered once the interpolation animation has been done.

propertyPath: string

Defines the path of the property where the value should be interpolated

stopOtherAnimations?: boolean

Defines if the other scene animations should be stopped when the action has been triggered

trigger: number

Trigger for the action

triggerOptions: any

the trigger, with or without parameters, for the action

value: any

Defines the target value at the end of the interpolation.

Methods

  • execute(): void
  • Execute the action starts the value interpolation.

    Returns void

  • getTriggerParameter(): any
  • Gets the trigger parameter

    Returns any

    the trigger parameter

  • serialize(parent: any): any
  • Serializes the actions and its related information.

    Parameters

    • parent: any

      defines the object to serialize in

    Returns any

    the serialized object

  • setTriggerParameter(value: any): void
  • Sets the trigger parameter

    Parameters

    • value: any

      defines the new trigger parameter

    Returns void

  • skipToNextActiveAction(): void

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme