ecspresso
    Preparing search index...

    Function defineSpriteAnimations

    • Define a multi-clip animation set with named animations. Animation names are inferred from the keys of the clips object.

      Type Parameters

      • A extends string

      Parameters

      • id: string

        Unique identifier for this animation set

      • clips: Record<A, SpriteAnimationClipInput>

        Object mapping animation names to clip definitions

      • Optionaloptions: { defaultClip?: NoInfer<A> }

        Optional configuration (defaultClip)

      Returns SpriteAnimationSet<A>

      A frozen SpriteAnimationSet with inferred animation name union