- Home /
Unity Sprite Editor : Include blank/empty cells when slicing?
I have a bunch of *png spritesheets, each divided into 32 cells. On some of the cells, certain frames are empty. When I slice either by Grid-Cell-Size or Grid-Cell-Count, these empty cells are not included.
Is there any way to include the empty cells when auto-slicing?
I can manually slice, but it is a bit more cumbersome and involves renaming quite a few of the grids.
Answer by undecay · Dec 03, 2019 at 01:59 PM
Actually you can. You'll just need to fill your empty cells with a solid color before slicing them for the first time. After that, just clear your main file and it will update as you go.
Answer by redknight158 · Mar 08, 2020 at 11:56 PM
Just figured out a great way to do this. Before you slice your sprite, go to the sprite settings and for "Alpha Source" select None. Now, when you go to slice your sprite, Unity will think it's all one color and you can do a grid slice that will include empty cells. After you've sliced it, go back to the alpha source and select "Input Texture Alpha" and you're done!
NIce workaround! Still sucks that I have to manually delete all the really not needed empty slices.
Answer by FortisVenaliter · Jan 26, 2017 at 06:08 PM
No, you cannot automatically slice empty cells, as far as I know.
However, why would you want to? That would literally increase your VRAM usage with empty, useless data. If you want empty sprites, why not just define one, and use that where you need something to be invisible, or better yet, disable the component rendering it?
You want to, if you just want do drag your sprites into the scene to create animations fast and comfortable. Otherwise you have to manually edit every single animation and add an empty sprite.
Answer by MisterMinimatrix · Jan 26, 2017 at 05:15 PM
When in the Sprite Editor you can manually create / drag a frame with your mouse. I'm sure there is a better way but I haven't found it yet.
Your answer
Follow this Question
Related Questions
How do I get edges to form to the sprite shape and not a block around the sprite? 0 Answers
"multiple sprites" → change resolution? 1 Answer
Non-Rectangular sprites in the sprite editor 0 Answers
What size should i have my atlas if im trying to do a game for pc xbox and ps? 1 Answer
Sprites won't show in the Assets Folder 0 Answers