StateOptions: {
    clip: AnimationClip;
    cycleOffset?: number;
    cycleOffsetParameter?: string;
    loop?: boolean;
    speed?: number;
    speedParameter?: string;
}

Configuration for an animation state in the builder

Type declaration

  • clip: AnimationClip

    The animation clip for this state

  • OptionalcycleOffset?: number

    Normalized cycle offset 0-1 (default: 0)

  • OptionalcycleOffsetParameter?: string

    Name of a float parameter to use as cycle offset

  • Optionalloop?: boolean

    Whether the animation should loop (default: false)

  • Optionalspeed?: number

    Base speed multiplier (default: 1)

  • OptionalspeedParameter?: string

    Name of a float parameter to multiply with speed