I just want to do a fade to white between a menu button click and the level load.
So I'm using a flat 2x2px white texture as a prefab and resizing it using a script on instantiation.
I can get the white fade to render in front of statically placed objects (by playing with Z transform values), but my menu buttons are still showing over the fade.
Any way to get the white fade in to also cover the scripted menu buttons? Hope my explanation is clear.
3D objects can never appear in front of OnGUI. Either don't use OnGUI, or else do the fade using OnGUI also (such as GUI.DrawTexture).
answered Apr 26, 2013 at 06:41 PM