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
0
Question by chunjai · May 01, 2011 at 09:20 AM · spritespritemanagerspritemanager2

iOS SpriteManager 2 issue with backgrounds

i'm using the packedsprite script for my scenes in unity. it's an ipad project, so each scene has a 2048x2048 sheet. so far, two scenes. what's great is that the smaller sprites stay where they belong. unfortunately, when i build atlas with the 1024x768 background (on each scene), one cancels out the other. i go back into the other scene to rebuild the atlas, and the background from the previous scene gets deleted. a vicious cycle.

they both are assigned different materials to go onto different sprite sheets, so i can't see the problem here. i even tried forcing the square when building the atlas... not that i want them on the same sheet, but there's plenty of room for it so i don't see why one is deleted all together.

can't seem to find a solution so any help would be appreciated.

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
0

Answer by chunjai · May 01, 2011 at 04:25 PM

Brady gave me this excellent response that worked like a charm ::

That sounds like that one or both of two things is happening:

1) There is an object in the open scene that uses the material of the object in the un-opened scene, and so it is over-writing the contents of that material's atlas.

2) There is a prefab in the project folder that uses a material of objects in un-opened scenes, and those objects in the un-opened scenes aren't linked to prefabs themselves, and so they get "left out" of the atlas build.

This is why it is strongly recommended to make sure each type of sprite in your game is linked to a prefab, because since Unity doesn't provide access to objects in non-open scenes, this is how information gets synchronized between scenes.

If you've already done this and it is still happening, go to your scene instances of your prefabs with which you're having trouble, and make sure they are re-connected to their source prefab by selecting them and clicking the "Revert" button in the inspector. This will make sure none of their values have been overridden.

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

No one has followed this question yet.

Related Questions

Changing sprite properties at runtime 2 Answers

error CS1520: Class, struct, with Sprites 3 Answers

The name 'PackedSprite' does not denote a valid type ('not found') 3 Answers

SpriteManager 2 pixel perfect blurry and stretched 2 Answers

How do I use the PlayAnim function in SpriteManager 2? 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