Version: 2020.2
Procedural skybox
Visual Effects Components

Skybox component reference

Switch to Scripting

The Skybox component overrides the skybox that Cameras on the same GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
draw. It gives you control over what skybox a CameraA component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info
See in Glossary
renders and is useful when you have multiple Cameras in your SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
and want to draw different skyboxes depending on the Camera.

Render pipeline compatibility

Feature Built-in Render Pipeline Universal Render Pipeline (URP) High Definition Render Pipeline (HDRP)
Skybox component Yes (1) Yes (1) No (2)

Notes:

  1. The Built-in Render Pipeline, and the Universal Render Pipeline (URP) both support this component.
  2. The High Definition Render Pipeline (HDRP) does not support this component and instead includes multiple sky generation solutions.

Properties

Property Description
Custom Skybox The skybox that Cameras draw if they are on the same GameObject as this component. The Material you assign to this property should use a skybox Shader.
Procedural skybox
Visual Effects Components