|
I'm drawing a gui using OnGUI, and have a keyboard shortcut for showing/hiding it. Toggling visibility causes some weirdness on 3d text-meshes using the standard GUI/Text Shader. Rendering of them changes, sometimes to a dark color, sometimes they disappear. It happens consistently in builds when toggling the GUI on/off, never in the editor:
Has anybody encountered this? I'm toggling by setting a bool in Update:
And drawing gui based on that bool:
(comments are locked)
|


Fixed with custom shader. Seems something in the built-in text shader is a bit funky. Changes are: ztest less (was always), zwrite on (was off), using constantColor [_Color] inside the pass instead of Color [_Color] outside. Not sure which of these did the trick...