Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Description

Clear 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;