An open API service indexing awesome lists of open source software.

https://github.com/jingshing/unitycutspritesheetviascript

a script help you cut sprite sheet automatically
https://github.com/jingshing/unitycutspritesheetviascript

sprite sprite-editor sprite-sheet spriteeditor sprites spritesheet spritesheets unity unity-editor unity-scripts

Last synced: 6 months ago
JSON representation

a script help you cut sprite sheet automatically

Awesome Lists containing this project

README

          

English | [繁體中文](README_TCH.md)
# 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](image/menu.png)

# 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
* [Editor script to slice sprites UnityQA](https://discussions.unity.com/t/editor-script-to-slice-sprites/135690)
* [AutoSpriteSlicer.cs](https://gist.github.com/shadesbelow/8a6ddc54db795241f3cff539db6ea487)