Select your preferred scripting language. All code snippets will be displayed in this language.
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.
CloseClear with the skybox.
If a skybox is not set up, the Camera will clear with a backgroundColor. See Also: Camera.clearFlags property, camera component, Render Settings.
// Clear with a skybox camera.clearFlags = CameraClearFlags.Skybox;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { camera.clearFlags = CameraClearFlags.Skybox; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: camera.clearFlags = CameraClearFlags.Skybox