- Home /
GUI elements sometimes flicker or flash, briefly showing incorrect sprite images
The GUI elements of the game I'm working on will sometimes flash. The flashing appears to momentarily show different sprite and font images instead of the correct sprite images in the GUI elements, as if they were, for just one frame, looking at the wrong positions in graphics memory.
There is no specific correlation with any particular action or event in the game, with the incidence of the flashing. But, it does seem to happen when the game engine is being taxed in some way; resizing the map due to the UI layout changing, moving to a different area of the map, or displaying a particle effect are some of the most common times it will happen, but it will also happen sometimes just when a button is pressed.
This video shows the flickering: https://youtu.be/Qn09vlA6JQc
It happens when I run the game on two of three PCs I've tried it one.
Any idea how to fix this? Thank you.
Example: Here is how this corner of the GUI should look:
Here is one of many variations that it briefly flashed to for a frame:
Answer by Logopolis · Feb 25, 2016 at 07:15 AM
It turns out that a lot of other people were seeing this same problem, eg:
http://answers.unity3d.com/questions/1110009/whole-ui-flickering-when-animated.html
At long last it was fixed in early February, in patch version 5.3.2p1. I've downloaded the new version and so far the problem seems to be completely fixed!
I was suffering this issue terribly on any animated GUI elements, so I just updated from 5.3.2f1 to 5.3.2p2, the flickering is gone, thank goodness :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612063907im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to scale triangle created by GL(using viewport position) with scale factor of Canvas? 0 Answers
Non rectangular GUI Mask / Matte? 2 Answers
How to handle UI/Space mixed scene? 2 Answers
How to convert unity editor GUI functions to something that can be used in game? 0 Answers
UI Button multiple parameters 6 Answers