项目
在 GitHub 查看 

kyubuns/Auto9Slicer
关于
Auto 9 slice sprite generator on Unity
游戏与模拟器实测星标增长
- 24小时
- -1
- 7天
- -2
- 15天
- -2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Auto9Slicer
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)
探索相关项目
加载中…