お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseHow the camera clears the background.
Can be CameraClearFlags.Skybox, CameraClearFlags.SolidColor, CameraClearFlags.Depth or CameraClearFlags.Nothing.
// Clear with background color (ignore any skyboxes) camera.clearFlags = CameraClearFlags.SolidColor;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { camera.clearFlags = CameraClearFlags.SolidColor; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: camera.clearFlags = CameraClearFlags.SolidColor