Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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 23 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:
  1. Create or select a Camera in your scene.
  2. 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
renderType
property of the Camera's Universal Additional Camera Data component, like this:
var cameraData = camera.GetUniversalAdditionalCameraData();cameraData.renderType = CameraRenderType.Base;