Publisher | Chillout Labs |
---|---|
File size | 36.62kB |
Number of files | 11 |
Latest version | 0 |
Latest release date | 2019-10-28 08:17:11 |
First release date | 2019-10-28 08:17:11 |
Supported Unity versions | 2018.4.2 or higher |
SpriteCutter is a tool which allows to cut texture with set sprites. SpritesCutter uses sprites meta data and create square (power of two) separate textures.
It can be useful in cases:
- Need to cut texture on small square textures. For example if you have big sprites set with set pivots. If you do not want to cut this textures by hand and set pivots again you can use this tool. For now, script set pivot in the center of future texture.
- Need to optimize assets and textures. IOS uses POT(power of two) textures, for example. In such format it takes less space than for whole (not cutted) texture. For example, 4 textures of 512 * 512 takes 512 KB in PVRTC 4. 512 * 2048 takes 1024KB in RGBA32. So, better way is to split big texture on several small but square.
Usage description
SpriteCutter create textures in the folder placed near cut texture. Firstly, you need to make texture read/write in import setting. Then you can go to Window -> SpriteCutter. The window with image selector will appear. When you can select texture in project. Sprite cutter script will calculate amount of sprites based on .meta file. After pressing 'Create sprites' the pictures will be created. Next, Unity should import new textures automatically. But for final usage, you need to select new created sprites, setup texture type to Sprite2D (in texture importer), select Sprite type to 'Single' and apply changes. And cheers, you cut the textures!
Notice: this only beta version, new features will appear in new releases
Requirements: needs YamlDotNet, which you can load from https://assetstore.unity.com/packages/tools/integration/yamldotnet-for-unity-36292?aid=
Plans for future releases:
- Add several textures selection
- Manual size selection
- Automatic texture import settings fix
- Project analysis for size optimization
It can be useful in cases:
- Need to cut texture on small square textures. For example if you have big sprites set with set pivots. If you do not want to cut this textures by hand and set pivots again you can use this tool. For now, script set pivot in the center of future texture.
- Need to optimize assets and textures. IOS uses POT(power of two) textures, for example. In such format it takes less space than for whole (not cutted) texture. For example, 4 textures of 512 * 512 takes 512 KB in PVRTC 4. 512 * 2048 takes 1024KB in RGBA32. So, better way is to split big texture on several small but square.
Usage description
SpriteCutter create textures in the folder placed near cut texture. Firstly, you need to make texture read/write in import setting. Then you can go to Window -> SpriteCutter. The window with image selector will appear. When you can select texture in project. Sprite cutter script will calculate amount of sprites based on .meta file. After pressing 'Create sprites' the pictures will be created. Next, Unity should import new textures automatically. But for final usage, you need to select new created sprites, setup texture type to Sprite2D (in texture importer), select Sprite type to 'Single' and apply changes. And cheers, you cut the textures!
Notice: this only beta version, new features will appear in new releases
Requirements: needs YamlDotNet, which you can load from https://assetstore.unity.com/packages/tools/integration/yamldotnet-for-unity-36292?aid=
Plans for future releases:
- Add several textures selection
- Manual size selection
- Automatic texture import settings fix
- Project analysis for size optimization