Whole UI flickering when animated.
When i click some button, or play some UI Animator -animation, all the images and buttons flicker and for a second change to another sprite and come back to the original. It's not only in my project, this happen on others projects and the UnityExamples Scenes.
Same here: a 1-frame flash of a different texture on some of the buttons.
This started happenineg after upgrading to 5.3, but happens only on Windows Desktop build (Android seems ok).
Hi, we are looking into similar issues for sprites flickering during animation. In one of the cases it looks like during animation the texture becomes wrong for a few frames or that the other image is the default background and so it is a z-fighting issue.
Could you help us by sending in a bug report with a project folder?
Answer by Scej · Dec 18, 2015 at 01:30 AM
I finally tracked down my issue by disabling all UI elements one at a time till I found the one that was causing the issue.
My problem was due to a single UI image Rect Transform Pos Z being set to 0.00015125 (something besides 0), I reset it to 0 and all is good.
I just tried it out in my own project with some masked image being rendered above sprites which was flickering whenever a UI animation occurred. Found an element that was very close to zero and set it back to zero removed the flickery! Thanks for this valuable tip, Scej!
Answer by 11k · Dec 18, 2015 at 08:59 PM
I found the solution by manny mistakes. For us to work everything without flickering i just change the "Max Size" on all our sprites to 1024 and the "Format" to "Compressed" . Also uncheck GPU Skinning in the Player Settings and use the latest patch 5.3.1f1.
Set all textures max size to 1024. Didn't help. Did anyone send bug report?
resizing the sprite to 1024 can't be a solution...
Have you tried moving the canvas transform Z to 0.05 or greater?
Answer by Vounet · Dec 11, 2015 at 11:00 AM
Same problem here since the update to 5.3.0f4 : -When a sprite is changed or when a new UI element is created some sprites (not all of them but a lot) change to what seems to be a not random sprite, but which is completly different from the one expected and then back to the original one after one frame.
Interesting point : I have a terrain one my scene, if I suppress it everything works fine.
We had a similar problem on an older version but it was corrected.
I corrected most of the warnings on my project (inclufing all NPOT) and it doesn't seem to be linked to the ones left.
Answer by MuHaGames_Avee · Dec 12, 2015 at 01:41 PM
I'm having the same issues, exactly as you described it. However, it only appears on OpenGL and sometimes on dx9. So far I have not observed it in Dx11 mode. I was not able to figure out what is causing this yet, but it's extremely annoying and prevents me from upgrading to 5.3 for public builds of my game. I really hope they can fix it soon or at least that we can find a workaround.
Answer by Scej · Dec 17, 2015 at 04:35 PM
Can confirm, I'm also having this issue any time a UI sprite is moved/animated. I posted an example video to youtube, Please don't pay any attention to the stretched graphics, I captured this video mid UI construction =P
Your answer
Follow this Question
Related Questions
World Space UI and Sprite Renderer doesn't render correctly,World Space UI doesn't render correctly 0 Answers
How to change a button image with script? 1 Answer
Flickering Or Distorted Sprites after building. 2 Answers
How do you change pressed sprite (C#) 1 Answer
Trouble with UI elements on Sprites 0 Answers