Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity 2018.1.3f1 UI flickering issue

Our team has been experiencing UI flickering issues since we've updated our Unity version from Unity 5.4.3f1 to Unity 2018.1.3f1. It only appears on the build (Android/iOS) but the flickering doesn't occur on the editor. Note: Our UI's layering is already setup.

Things that we've tried but didn't work:

  • Changed the main camera's transparencySortMode from default to Orthographic.
  • Turning on/off the canvas component instead of the GameObject itself.
  • Added some value on z-axis of the prefab (ex. 0.05, 0.1, 1, etc.)

Do anyone experience this kind of issue? If so, please tell us your fix (or possible fix) for this kind of issue. Any answer would be much appreciated.

like image 609
Jan Patrick Avatar asked Mar 11 '26 00:03

Jan Patrick


1 Answers

Did you try instantiating the UI, slower for example you can test it out using coroutine. So instead of instantiating the UI in one frame for example in one function why not try using coroutines.

IEnumerator PrepareUI()
{
   //Instantiate UI - 1
   yield return new WaitForEndOfFrame();
   //Instantiate UI - 2
   yield return new WaitForEndOfFrame();
}

This worked for me before I experimented with it instead of end of frame on some areas I ended up with WaitForSeconds(float) and that showed significant improvement.

like image 158
Gailbert Avatar answered Mar 12 '26 14:03

Gailbert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!