Basically what it says in the subject line. I noticed that in overdraw view mode all my hidden panels show up, which would be quit suboptimal for (mobile) performance. So I wondered, are those elements rendered with 0 alpha or are they skipped in final builds?
With a little more elaborations: I have multiple panels in my UI and I hide them by setting the alpha of their canvas groups to 0 (and the raycast blocking and intractable checkboxes off). I sort of assumed that setting the alpha to 0 would make the elements not render at all, but the editor’s overdraw view suggests that it does render everything.
Is this an editor “feature” or are all alpha 0 UI elements rendered in final builds too?
I think atm they are drawn even if 0. We have a solution thats not finished that will hopefully solve this issue. for now if you put them on a new canvas and set the canvas alpha to 0 it should prevent the draw.
Ah, thanks for clearing that up!
Did you solve this issue yet (v5.2.0)? I am developing a new multiplayer mobile game project, I use a lot of UI Panel with canvasgroup alpha set to 0 and it really seriously slow down my game with all panels superposed.
I’ve opened a bug report about that issue and it has been “fixed for 5.3”.
Thank you for your information, then I’m waiting 5.3 with big enthusiasm!
