Hi there, I'm new to Unity. I'm working on the Walker Brothers tutorial for creating a 2D mario clone.
I'm a bit confused as to how the Clear Flags field works on a camera. The options are: - Skybox, Solid Color, Depth Only, and Don't Clear
My current scene is just mario, the platform and a few blocks above him.
If I switch to "Skybox", everything is clear and fine, the background cast is a sky. Same thing with "Solid Color".
If I select "Depth Only", objects in the scene begin repeating themselves (for example, walking mario around will leave several frozen copies of him trailing, kind of like a graphics glitch. Is there a term for this?). The same thing happens for "Don't Clear".
Can anyone help explain to me whats going on in laymans terms? I tried reading the manual (http://unity3d.com/support/documentation/Components/class-Camera.html) but I didn't quite get it. Any help in explaining how Clear flags on cameras works is appreciated. Thanks!
asked Jun 04 '11 at 10:13 PM
You would only use Depth Only if you have more than one camera. You can use this for layering cameras, where you use Depth Only on the top camera, so the background areas would have the bottom camera show through. Don't Clear is rarely used for anything. http://unity3d.com/support/documentation/Components/class-Camera.html
answered Jun 04 '11 at 10:27 PM