> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pixelate.tomblack.ca/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up sprite animations

> Turn Pixelate sprite sheets into Unity animation clips.

Pixelate captures and slices sprite sheets. It does not create `.anim` files during capture.

## Create an animation clip

<Steps>
  <Step title="Select the sprite sheet">
    In the Project window, select the PNG generated by Pixelate.
  </Step>

  <Step title="Create the animation">
    Use Unity's Animation window or your preferred sprite-animation workflow to create an `.anim` clip from the sliced sprites.
  </Step>

  <Step title="Find the clip">
    Save the `.anim` clip in your project, usually near the generated sprite sheet.
  </Step>

  <Step title="Assign the clip">
    Add the clip to your Animator Controller or drag it onto a Sprite Renderer GameObject.
  </Step>
</Steps>

## Verify slices

Open the generated PNG in Unity's Sprite Editor if you need to inspect the frames. Pixelate slices from top-left to bottom-right using **Camera > Cell Size** and **Output > Pivot**.

## Normal-map animations

For lit animations, use a Sprite-Lit material in URP. Pixelate links each generated `_N.png` to its matching diffuse atlas as a secondary texture, so URP can read the normal map from the sprite.

<Steps>
  <Step title="Create a material for the clip">
    Use `Universal Render Pipeline/2D/Sprite-Lit-Default` in URP projects. URP is recommended because Pixelate's demo content is built for it and it supports 2D lighting with normal maps out of the box.
  </Step>

  <Step title="Use the generated sprites">
    Build the animation from the sliced sprites in the generated diffuse atlas. The matching normal-map atlas is already linked to those sprites.
  </Step>

  <Step title="Assign the material">
    Set the material on the Sprite Renderer that plays the animation.
  </Step>
</Steps>

<Tip>
  If normal-map lighting looks flat, check that the Sprite Renderer uses a Sprite-Lit material and the scene's `Light2D` has **Normal Maps** enabled.
</Tip>
