Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: yohann on August 20, 2013, 07:55:44 PM
-
(SEE ATTACHED IMAGE) I have two cameras, sort of a picture-in-picture, except I want to toggle between full screen and a "windowed" screen. I'm making the windowed screen via the camera.pixelRect property. This works fine...until I add an NGUI element, at which point the disabled full screen camera doesn't clear the image from the screen after it's disabled. Please please help.
(http://)
EDIT: I've discovered that I can fix this by changing any of the values of Normalized View Port Rect of the NGUI camera by some insignificant amount, such as changing the W param from 1 to 1.001. This gets it working, but I'd sure like a non-hacky way of solving this. Any ideas?
-
Eh? You must have at least one camera clearing color in your game. UI camera clears only depth by default.
-
Thanks for the reply! I'm new to Unity, so can you tell me: is this a requirement just of NGUI or is it a fundamental game design concept using Unity?
-
Fundamental necessity of any game.
If you don't clear the color, how can you expect the stuff you drew previously to go away?
-
Got it. Thanks so much!!