Camera.clearFlagsvar clearFlags : CameraClearFlagsDescriptionHow the camera clears the background. Can be CameraClearFlags.Skybox, CameraClearFlags.SolidColor, CameraClearFlags.Depth or CameraClearFlags.Nothing.
JavaScripts
// Clear with background color (ignore any skyboxes)
camera.clearFlags = CameraClearFlags.SolidColor; using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { camera.clearFlags = CameraClearFlags.SolidColor; } } import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): camera.clearFlags = CameraClearFlags.SolidColor |
