Skip to content

Export Sprites from a Sprite Sheet into Separate PNG Files

Notifications You must be signed in to change notification settings

SMahdiFaghih/SpriteExporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Overview

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.

How to Use

  • Ensure the SpriteExporter script is placed in the Assets folder within your Unity 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.

About

Export Sprites from a Sprite Sheet into Separate PNG Files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages