Camera.clearFlags 清除标识

var clearFlags : CameraClearFlags

Description描述

How the camera clears the background.

相机如何清除背景。

Can be CameraClearFlags.Skybox, CameraClearFlags.SolidColor, CameraClearFlags.Depth or CameraClearFlags.Nothing.

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public void Awake() {

		camera.clearFlags = CameraClearFlags.SolidColor;

	}

}
// Clear with background color (ignore any skyboxes)

//用背景颜色清除(忽略天空盒)



camera.clearFlags = CameraClearFlags.SolidColor;
Page last updated: 2011-3-6