Auto 9Slicer Readme

Auto 9 slice sprite generator on Unity.

image

Simple Use

Create Auto9SliceTester. Assets > Create > Auto 9Slice > Tester

image

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

image

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());

Contact