/UnityCutSpriteSheetViaScript

a script help you cut sprite sheet automatically

Primary LanguageC#BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

English | 繁體中文

UnityCutSpriteSheetViaScript

a script help you cut sprite sheet automatically

How to use

Put "Editor" folder in your unity project's "Assets" folder.

it will add menu item in tools menu.

menu

Introduction

There are two scripts in this repo:

  • SpriteCutter.cs
    • There are two mode "auto" and "size" can be use: "auto" mode is same as auto mode in sprite editor. "size" mode you can edit size you want in the script.
    • This script add "Slice Images in Folder" and "Slice Images in Folder" in tools bar.
    • Can press short cut to use script
  • SpriteCutterFolder.cs
    • This script will cut all the png image in the selected folder. Using size(can be edit in script).
    • It will show file explorer to you for selecting folder path

Reference