utkaka / ScaleNineSlicer

MIT License
26 stars 0 forks source link

Scale Nine Slicer

A tool for automating work with 9 slice scaling in Unity.

Automatic 9 slice borders detection.

Autodetection!

Trimming sliced sprite center to 1px.

Trim center!

Trimming extra transparency.

Trim alpha!

Installation

There are 3 ways to install this plugin:

Usage:

Context menu in Project view

You can select textures and/or folders with sprites and perform an action on all contained sprites.

Context menu!

Editor window (Unity 2021.2+)

If you want a more controlled result there is an editor window (Window/2D/Sprite Nine Slicer).

Editor window!

Features:

API

Just create an instance of SpriteInfo and use it's public API. You can use it both in Unity Editor and at runtime.