Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by barjed · May 26, 2016 at 02:03 PM · editorbuildspriteunity5spriterenderer

Corrupted sprites in builds ONLY

We started having this really strange issue out of the blue. Some sprites get corrupted but only in (Windows) builds. There are no problems when the game is run from the editor.

Here's how the corrupted sprites look in the build. The one on the left works correctly, the one on the right is all messed up.

alt text

It is a really puzzling problem and we have never encountered anything similar on this project for the last year. Furthermore this corruption issue started appearing on sprites that were fine just weeks ago. We tried every single solution we could think of. Our conclusions are these:

  • It's not a problem with the file itself. We tried deleting, copying, recreating from the source and nothing helps. The file is read correctly in the Editor and in every single software application as well.

  • It's not a problem with the import settings. Both of the icons in the picture above have the same settings and are identical in terms of size, file format, etc.

  • It's not related to the way the sprite is presented - the issue occurs both in regular Sprite Renderers and UI Image elements and is also presented when already present in the scene and when instantiated.

  • It doesn't seem to be hardware related. We tried building and running on various hw configurations including laptops. We tested on both dedicated GPUs (nVidias) and intergated Intel cards. We also tried updating drivers - no difference. All computers were running Windows 10 though.

  • The corrupted sprites really seem to have nothing in common in terms of their properties. The issue manifests on both transparent and opaque sprites, of various sizes and colour palettes.

  • Deleting the 'Library' folder and reimporting assets does not help. We tried this solution on two different computers.

  • The corrupted sprites work correctly when the scene that presents them is the first scene in the build order - this is utterly confusing. If the scene is loaded directly after the application runs everything is fine. If it's loaded into from the other scene however, it's broken.

  • We are on Unity 5.3 and it might be a problem related to this, however there is nothing like this in the Issue Tracker. We also couldn't find anything similar while searching through the internet forums. We tried building on 5.3.1 up to the recent 5.3.5 - no difference.

Any assistance would be GREATLY appreciated.

przechwytywanie.png (272.0 kB)
Comment
Add comment · Show 2
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 soonk · Sep 15, 2016 at 02:18 AM 0
Share

Hey there @barjed , any luck on this issue?

avatar image drHogan · Mar 07, 2017 at 02:38 PM 0
Share

Any news on a solution? We have a very similar one here as well!

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by drHogan · Mar 12, 2017 at 03:19 PM

Ok, I had the same identical problem, and today after a huge twisted search I solved it. I hope you @barjed did too, but others might find this answer useful. The problem was that the resource folder was, when packed, above 4Gb and that drives Unity nuts on textures. Reduce that size by removing stuff from the resources (in our case we had our textures outside, but the damn prefabs using them inside), and the problem for us disappeared.

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 mjasonlouw · Jul 25, 2019 at 09:48 PM 0
Share

I get that the removal of the textures would stop the error but i need to use the prefabs and the animations connected to it. Thats why they are in my scene. How would I find a work around without having to delete things?

avatar image
0

Answer by boehmz1990 · Feb 08, 2017 at 02:47 PM

For me this problem was solved by turning off mip-maps in all sprites.

shout out to http://answers.unity3d.com/questions/1196020/sprites-appears-corrupted-in-standalone-build-but.html for the suggestion

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 Zullar · Mar 14, 2019 at 11:50 PM

I am also having an identical bug. https://forum.unity.com/threads/unity-ui-sprite-getting-scrambled.643435/#post-4321717

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

76 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 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 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

BCE0044 erro only shows when trying to build .apk 0 Answers

Sprite Shape completely incorrect in build. 0 Answers

Distribute terrain in zones 3 Answers

Sprite Previews not displaying! 0 Answers

Can't create a 2D sprite with Sprite.Create when creating texture in code 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