Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
6
Question by Wisearn · May 27, 2015 at 08:31 AM · spritememoryatlassprite packer

Both atlas and individual sprite in memory?

Hey unity community!

We use Unity's built-in atlas packing, and it works really well for our world decorations.

But for one set of sprites that we use for a part of our game (mostly as a UI) Unity seems to load both the atlas, and the individual sprites, into the memory.

When I click on the atlas in the Profiler under memory details and select the correct part, it is referenced to the correct GameObject in the scene hirarchy. When I click on the individual sprite for the same image, it is also referenced by the exact same GameObject.

This does not happen for any other atlas packed sprites that we load as prefabs during runtime, but in this case they are referenced directly in the scene hierarchy and produces these weird duplicate memory entry results.

Project settings are set to always enable sprite packing, and none of the sprites are in the Resources folder as we are fully aware of this issue regarding sprite packing and that folder.

Here is the Atlas in memory, pointing to HomeSlot: alt text

And here is the individual Sprite in memory, pointing to HomeSlot: alt text

Any help greatly appreciated!!!!

Thank you.

atlas.png (263.7 kB)
individualsprite.png (187.3 kB)
Comment
Add comment · Show 5
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 Wisearn · May 27, 2015 at 11:28 AM 0
Share

We are moving our UI elements to be a prefab instantiated as a prefab right now, this is the only thing that works for the rest of our game using the built-in atlas sprite packing so here's hoping it works.

However I still don't see why what we're doing right now doesn't work properly.

avatar image WibbuTechnology · Dec 04, 2015 at 01:01 PM 0
Share

This seems to be the case when profiling the editor, but in my experience when profiling the device only the atlas is loaded into memory.

Hopefully this is always the case.

avatar image Sprakle · Mar 22, 2016 at 06:03 PM 0
Share

Stumbled across this old post when trying to figure out a similar problem. $$anonymous$$any of our sprites are showing up in the profiler and having a large memory impact, even though they are definitely packed in the sprite atlas.

Anyone know what's going on?

avatar image thomas231 · Jan 05, 2017 at 06:16 PM 0
Share

I made the same observation. Sprites are shown as atlas and individual in unity memory profile connected to an iOS device.

I really hope Unity gives us some information about this.

avatar image EDevJogos · Jan 12, 2018 at 09:52 PM 0
Share

Same here, this thread is from 2015 and in 2017 using Unity 2017.3.0f3, i'm having this problem, can't figure out the reason.

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by hugojacob · Jun 10, 2016 at 12:10 PM

We had the exactly same problem. What we did to solve this was deleting the library folder and restarting Unity.

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

Answer by agandullogenera · Jun 27, 2017 at 01:54 PM

Check if the sprites in the atlas are being used also as a texture in a shader that is not a sprite shader. If a sprite in an atlas is use in a shader as a Texture this will be included in the build and in memory as a different texture apart from the one included in the atlas.

Resume: be sure that what you put in a Sprite atlas you use it as a Sprite otherwise it will be included twice.

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

Answer by Leon85 · Jun 16, 2016 at 01:15 PM

Try reimporting the offending sprites, worked for us.

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

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

Related Questions

SpriteAtlas clone memory problem 0 Answers

Adding sprites to "Objects for Packing" list in a SpriteAtlas through code? 1 Answer

Why is atlas and individual sprites included in package? 0 Answers

Unity's Sprite Packer or Manually Creating Atlas? 0 Answers

Dealing with PNG's in the project 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