Change the render type of a camera in URP
Change the type of a camera in the Unity Editor or using a script.
Read time 1 minuteLast updated 22 days ago
Use a Camera’s Render Type property to make it a Base Camera or an Overlay Camera.
To change the type of a Camera in the Unity Editor:
-
Create or select a Camera in your scene.
-
In the Camera Inspector, use the Render Type drop-down menu to select a different type of Camera. Select either:
-
Base to change the Camera to a Base Camera
-
Overlay to change the Camera to an Overlay Camera
-
You can change a Camera’s type in a script, by setting the property of the Camera's Universal Additional Camera Data component, like this:
renderTypevar cameraData = camera.GetUniversalAdditionalCameraData();cameraData.renderType = CameraRenderType.Base;