Sprite Exporter


Export Sprites from a Sprite Sheet into Separate Individual PNG Files


by Seyyed Mahdi Faghih


Price History +

The SpriteExporter script is a Unity Editor tool designed to Export sliced sprites from a specified Texture2D into individual PNG files. This can be particularly useful for extracting and saving individual sprites from a Sprite Sheet.


Github: Click here


🤝 EXECUTION GUIDE

  • Download and Import the Asset into your project.
  • Update the spritePath variable in the ExportSlicedSprites method to point to the texture containing the sliced sprites you want to export. You can get the path by right-clicking on the texture and selecting "Copy Path".
  • Ensure that the Read/Write property of the texture is enabled and the TextureType property of the texture is Sprite (2D and UI).
  • In the Unity Editor, go to the menu bar and select Tools > Export Sliced Sprites. This will execute the script and export the sliced sprites.