Strata - v1.4.10
    Preparing search index...

    Interface AnimationStateConfig

    Configuration for a single animation state.

    const idleState: AnimationStateConfig = {
    name: 'idle',
    animation: 'Idle',
    loop: true,
    blendWeight: 1.0,
    speed: 1.0
    };
    interface AnimationStateConfig {
        animation: string;
        blendWeight?: number;
        crossFadeDuration?: number;
        loop?: boolean;
        name: string;
        onComplete?: () => void;
        speed?: number;
    }
    Index

    Properties

    animation: string

    Animation clip name to play

    blendWeight?: number

    Blend weight for this animation (0-1)

    crossFadeDuration?: number

    Cross-fade duration in seconds when entering this state

    loop?: boolean

    Whether the animation should loop

    name: string

    Unique identifier for this state

    onComplete?: () => void

    Callback when animation completes (non-looping only)

    speed?: number

    Playback speed multiplier