Version: Unity 6 (6000.0)
Language : English
Camera render types in URP
Change the render type of a camera in URP

Introduction to camera render types in URP

There are two types of 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
in the Universal Render PipelineA series of operations that take the contents of a Scene, and displays them on a screen. Unity lets you choose from pre-built render pipelines, or write your own. More info
See in Glossary
(URP):

  • A Base Camera is a general purpose Camera that renders to a render target (a screen, or a Render TextureA special type of Texture that is created and updated at runtime. To use them, first create a new Render Texture and designate one of your Cameras to render into it. Then you can use the Render Texture in a Material just like a regular Texture. More info
    See in Glossary
    ).
  • An Overlay Camera renders on top of another Camera’s output. You can combine the output of a Base Camera with the output of one or more Overlay Cameras. This is called Camera stacking.

Base Camera

Base Camera is the default type of Camera in URP. A Base Camera is a general purpose Camera that renders to a given render target.

To render anything in URP, you must have at least one Base Camera 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
. You can have multiple Base Cameras in a scene. You can use a Base Camera on its own, or you can use it in a Camera stack. For more information on working with multiple Cameras in URP, refer to Working with multiple cameras.

When you have an active Base Camera in your scene, this icon appears next to the Camera GizmoA graphic overlay associated with a GameObject in a Scene, and displayed in the Scene View. Built-in scene tools such as the move tool are Gizmos, and you can create custom Gizmos using textures or scripting. Some Gizmos are only drawn when the GameObject is selected, while other Gizmos are drawn by the Editor regardless of which GameObjects are selected. More info
See in Glossary
in the Scene viewAn interactive view into the world you are creating. You use the Scene View to select and position scenery, characters, cameras, lights, and all other types of Game Object. More info
See in Glossary
:

Overlay Camera icon
Overlay Camera icon

For information on the properties that Unity exposes in the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
See in Glossary
for a Base Camera, refer to the Camera component reference.

Overlay Camera

An Overlay Camera is a Camera that renders its view on top of another Camera’s output. You can use Overlay Cameras to create effects such as 3D objectsA 3D GameObject such as a cube, terrain or ragdoll. More info
See in Glossary
in a 2D UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary
, or a cockpit in a vehicle.

You must use Overlay Cameras in conjunction with one or more Base Cameras using the Camera Stacking system. You cannot use Overlay Cameras on their own. An Overlay Camera that is not part of a Camera Stack does not perform any steps of its render loop, and is known as an orphan Camera.

Note: In this version of URP, Overlay Cameras and Camera Stacking are supported only when using the Universal Renderer.

When you have an active Overlay Camera in your scene, this icon appears next to the Camera Gizmo in the Scene view:

Overlay Camera icon
Overlay Camera icon

The Base Camera in a Camera Stack determines most of the properties of the Camera Stack. Because you can only use Overlay Cameras in a Camera Stack, URP uses only the following properties of an Overlay Camera when rendering the scene:

  • Projection
  • FOV Axis
  • Field of View
  • Physical Camera properties
  • Clipping planes
  • Renderer
  • Clear Depth
  • Render Shadows
  • Culling Mask
  • Occlusion Culling

Unity hides all of the other unused properties in the Inspector. You can access unused properties using a script, but any changes you make to these unused properties will not affect the visual output of any Camera Stacks that use the Overlay Camera.

Note: While you can apply post-processingA process that improves product visuals by applying filters and effects before the image appears on screen. You can use post-processing effects to simulate physical camera and film properties, for example Bloom and Depth of Field. More info post processing, postprocessing, postprocess
See in Glossary
to an individual Overlay Camera within a camera stack, the effects also apply to all the outputs the camera stack renders before the Overlay Camera. This is different to how you can apply post-processing to an individual Base Camera where the effects on only apply to the Base Camera.

For information on the properties that Unity exposes in the Inspector of an Overlay Camera, refer to the Camera component reference.

Camera render types in URP
Change the render type of a camera in URP