Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 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
0
Question by 0ju · Jan 28, 2014 at 08:41 PM · 2dunity 2dspritesatlaspacking

Does Unity 2D tools generate atlas?

Couldn't find any option to bring different sprites and generate an atlas directly in unity. Is it possible? Where? I can't find any tutorial.

Thanks.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by gfoot · Jan 28, 2014 at 09:40 PM

You need to perform several steps to enable the feature:

  1. Go to "Edit / Project Settings / Editor" and set the "Sprite Packer" mode to something other than "Disabled". Here you choose whether you want to use packed sprites in the editor, or only in standalone builds.

  2. Give your sprites "Packing Tags" by editing their import settings in the Inspector. Packing tags are like atlas names - this controls which sprites get packed together. So any sprites with identical packing tags will be packed into an atlas together.

  3. Open the "Sprite Packer" window (from the Window menu) and press "Pack" to repack all your sprites.

You will then be able to use the Sprite Packer window's controls to choose which atlas and page to view, and clicking on a sprite in the Project pane will highlight it in the Sprite Packer too (automatically selecting the right atlas and page).

Comment
Add comment · Show 2 · 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 0ju · Jan 29, 2014 at 11:52 AM 0
Share

Cool, it worked! But now the sprite editor won't slice the atlas. I'm trying to get it animated, but the atlas doesn't even give me the separated sprites.

avatar image gfoot · Jan 29, 2014 at 12:17 PM 0
Share

Generated atlases are not useful for animation - as far as your code or editor work is concerned, the atlas doesn't exist. It is an optimization that Unity performs behind the scenes. So if you need your sprites arranged on an image for animation purposes then you need to do that step yourself.

You can still use the automatic atlas generation as well if you want to, in which case Unity will take all the sprites you slice out of the source image and rearrange them in a new atlas, along with any other sprites with the same packing tag, and this will reduce draw call overheads.

If you have pro, you can use asset post-processing to automate the process of combining separate source images into an atlas of your own - there are probably scripts on the Asset Store already that can do this for you. Without pro, you can do the same thing in an editor script driven by a menu option. Other ways to generate this are Photoshop/Gimp plugins - so you edit a layered image and use an export plugin that arranges the layers in a grid.

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

19 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Get the atlas of a sprite in editor 0 Answers

Unity 5.2 Sprite packer too slow 1 Answer

Sprite with Multiple mode VS 2017 Sprite Atlas 0 Answers

Changing how my character looks depending on his current lifes. 2 Answers

Get sprites from a Texture2D 1 Answer


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