AnimationComponent: {
    activate: boolean;
    assets: number[];
    enabled: boolean;
    loop: boolean;
    speed: number;
}

Animation Component Properties.

Type declaration

  • activate: boolean

    If true, the component will start playing the animation on load.

    true
    
  • assets: number[]

    An array of Animation asset ids.

    []
    
  • enabled: boolean

    Whether the component is enabled.

    true
    
  • loop: boolean

    If true, the animation will continue to loop back to the start on completion. Otherwise, it will stop on its final frame.

    true
    
  • speed: number

    A multiplier for animation playback speed. 0 will freeze animation playback, and 1 is the normal playback speed.

    1