Projects
View on GitHub 

kyubuns/Auto9Slicer
About
Auto 9 slice sprite generator on Unity
Games & EmulationMeasured star growth
- in 24h
- -1
- in 7 days
- -2
- in 15 days
- -2
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalAuto9Slicer
Auto 9 slice sprite generator on Unity.

Instructions
- Package Manager
https://github.com/kyubuns/Auto9Slicer.git?path=Assets/Auto9Slicer
Simple Use
Create Auto9SliceTester. Assets > Create > Auto 9Slice > Tester

Click Run to automatically slice the images in the same directory.

From Script
Add it to your EditorScript so that it will be executed at your desired timing.
var slicedTexture = Auto9Slicer.Slicer.Slice(texture, SliceOptions.Default);
textureImporter.spriteBorder = slicedTexture.Border.ToVector4();
File.WriteAllBytes(filePath, slicedTexture.Texture.EncodeToPNG());
Requirements
- Requires Unity2019.4 or later
License
MIT License (see LICENSE)
Explore related projects
Loading…