AnimComponent: {
    activate: boolean;
    animationAssets: { [key: string]: { asset: number } };
    enabled: boolean;
    masks: {
        [key: string]: {
            mask: { [key: string]: { children: boolean; value: boolean } };
        };
    };
    rootBone: string;
    speed: number;
}

Anim Component Properties.

Type declaration

  • activate: boolean

    If true, the component will start playing the anim state graph on load.

    true
    
  • animationAssets: { [key: string]: { asset: number } }

    A dictionary that holds the animation assets used by this component. Each key is a string representing a path to a state.

    {}
    
  • enabled: boolean

    Whether the component is enabled.

    true
    
  • masks: {
        [key: string]: {
            mask: { [key: string]: { children: boolean; value: boolean } };
        };
    }

    The layer masks associated with this component.

    {}
    
  • rootBone: string

    The resource_id of the entity that this anim component should use as the root of the animation hierarchy.

    null
    
  • speed: number

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

    1