Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by Hupman · Nov 28, 2015 at 09:28 AM · spritesspritesheetsprite editor

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
4

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image revived · Dec 03, 2019 at 03:56 PM 0
Share

That's a good idea!

avatar image
3

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!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image LukaLovre · Jan 13, 2021 at 08:17 AM 0
Share

NIce workaround! Still sucks that I have to manually delete all the really not needed empty slices.

avatar image
1

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?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image revived · Nov 15, 2019 at 05:58 PM 0
Share

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.

avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges