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
- Host: GitHub
- URL: https://github.com/jingshing/unitycutspritesheetviascript
- Owner: JingShing
- License: bsd-3-clause
- Created: 2024-03-06T04:26:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T23:55:25.000Z (12 months ago)
- Last Synced: 2025-02-13T22:16:47.845Z (8 months ago)
- Topics: sprite, sprite-editor, sprite-sheet, spriteeditor, sprites, spritesheet, spritesheets, unity, unity-editor, unity-scripts
- Language: C#
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.

# 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)