CameraClearFlags.SolidColor Manual     Reference     Scripting  
Scripting > Enumerations > CameraClearFlags
CameraClearFlags.SolidColor

CameraClearFlags.SolidColor

Description

Clear with a background color.

See Also: Camera.clearFlags property, camera component, Camera.backgroundColor property.

JavaScripts
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