Version: Unity 6.2 Alpha (6000.2)
Language : English
Introduction to camera render types in URP
Multiple cameras in URP

Change the render type of a camera in URP

Use 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
’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 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
    .

  2. In the Camera 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
    , 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;
Introduction to camera render types in URP
Multiple cameras in URP
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961