SetParentAction

This defines an action responsible to set the parent property of the target once triggered.

see

http://doc.babylonjs.com/how_to/how_to_use_actions

Hierarchy

Index

Constructors

constructor

  • Instantiate the action

    Parameters

    • triggerOptions: any

      defines the trigger options

    • target: any

      defines the target containing the parent property

    • parent: any

      defines from where the animation should start (animation frame)

    • Optional condition: Condition

      defines the trigger related conditions

    Returns SetParentAction

Properties

onBeforeExecuteObservable

onBeforeExecuteObservable: Observable<Action>

An event triggered prior to action being executed.

trigger

trigger: number

Trigger for the action

triggerOptions

triggerOptions: any

the trigger, with or without parameters, for the action

Methods

execute

  • execute(): void
  • Execute the action and set the parent property.

    Returns void

getTriggerParameter

  • getTriggerParameter(): any

serialize

  • 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

skipToNextActiveAction

  • skipToNextActiveAction(): void

then

Generated using TypeDoc