Options
All
  • Public
  • Public/Protected
  • All
Menu

A behavior that forwards the Animatable interface to its object.

Hierarchy

Implements

Index

Methods

  • activate(enable: boolean): void
  • activated(): boolean
  • getAnimationDuration(): number
  • getAnimationElapsedTime(): number
  • getAnimationIndex(): number
  • getAnimationName(): string
  • getAnimationSpeedScale(): number
  • getName(): string
  • getNameId(): number
  • hasAnimationEnded(): boolean
  • isAnimationPaused(): boolean
  • isCurrentAnimationName(name: string): boolean
  • onActivate(): void
  • onCreated(): void
  • onDeActivate(): void
  • onDestroy(): void
  • This method is called when the owner of the behavior is being removed from the scene and is about to be destroyed/reused later or when the behavior is removed from an object (can happen in case of hot-reloading only. Otherwise, behaviors are just de-activated, not removed. See onDeActivate).

    Returns void

  • onObjectHotReloaded(): void
  • pauseAnimation(): void
  • resumeAnimation(): void
  • setAnimationElapsedTime(time: number): void
  • setAnimationIndex(animationIndex: number): void
  • setAnimationName(newAnimationName: string): void
  • setAnimationSpeedScale(ratio: number): void
  • updateFromBehaviorData(oldBehaviorData: any, newBehaviorData: any): boolean
  • usesLifecycleFunction(): boolean

Constructors

Properties

name: string
type: string

Generated using TypeDoc