Class UniversalAdditionalCameraData | Universal RP | 8.2.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class UniversalAdditionalCameraData

    Inheritance
    Object
    UniversalAdditionalCameraData
    Namespace: UnityEngine.Rendering.Universal
    Syntax
    public class UniversalAdditionalCameraData : MonoBehaviour, ISerializationCallbackReceiver

    Properties

    antialiasing

    Returns the current anti-aliasing mode used by this camera. AntialiasingMode.

    Declaration
    public AntialiasingMode antialiasing { get; set; }
    Property Value
    Type Description
    AntialiasingMode

    antialiasingQuality

    Returns the current anti-aliasing quality used by this camera. antialiasingQuality.

    Declaration
    public AntialiasingQuality antialiasingQuality { get; set; }
    Property Value
    Type Description
    AntialiasingQuality

    cameraStack

    Returns the camera stack. Only valid for Base cameras. Overlay cameras have no stack and will return null. CameraRenderType.

    Declaration
    public List<Camera> cameraStack { get; }
    Property Value
    Type Description
    List<Camera>

    clearDepth

    If true, this camera will clear depth value before rendering. Only valid for Overlay cameras.

    Declaration
    public bool clearDepth { get; }
    Property Value
    Type Description
    Boolean

    dithering

    Declaration
    public bool dithering { get; set; }
    Property Value
    Type Description
    Boolean

    renderPostProcessing

    Returns true if this camera should render post-processing.

    Declaration
    public bool renderPostProcessing { get; set; }
    Property Value
    Type Description
    Boolean

    renderShadows

    Controls if this camera should render shadows.

    Declaration
    public bool renderShadows { get; set; }
    Property Value
    Type Description
    Boolean

    renderType

    Returns the camera renderType. CameraRenderType.

    Declaration
    public CameraRenderType renderType { get; set; }
    Property Value
    Type Description
    CameraRenderType

    requiresColorOption

    Controls if a camera should copy the color contents of a camera after rendering opaques. The color texture is available to be bound in shaders as _CameraOpaqueTexture.

    Declaration
    public CameraOverrideOption requiresColorOption { get; set; }
    Property Value
    Type Description
    CameraOverrideOption

    requiresColorTexture

    Returns true if this camera requires to color information in a texture. If enabled, color texture is available to be bound and read from shaders as _CameraOpaqueTexture after rendering skybox.

    Declaration
    public bool requiresColorTexture { get; set; }
    Property Value
    Type Description
    Boolean

    requiresDepthOption

    Controls if a camera should render depth. The depth is available to be bound in shaders as _CameraDepthTexture. CameraOverrideOption

    Declaration
    public CameraOverrideOption requiresDepthOption { get; set; }
    Property Value
    Type Description
    CameraOverrideOption

    requiresDepthTexture

    Returns true if this camera needs to render depth information in a texture. If enabled, depth texture is available to be bound and read from shaders as _CameraDepthTexture after rendering skybox.

    Declaration
    public bool requiresDepthTexture { get; set; }
    Property Value
    Type Description
    Boolean

    scriptableRenderer

    Returns the ScriptableRenderer that is used to render this camera.

    Declaration
    public ScriptableRenderer scriptableRenderer { get; }
    Property Value
    Type Description
    ScriptableRenderer

    stopNaN

    Declaration
    public bool stopNaN { get; set; }
    Property Value
    Type Description
    Boolean

    version

    Declaration
    public float version { get; }
    Property Value
    Type Description
    Single

    volumeLayerMask

    Declaration
    public LayerMask volumeLayerMask { get; set; }
    Property Value
    Type Description
    LayerMask

    volumeTrigger

    Declaration
    public Transform volumeTrigger { get; set; }
    Property Value
    Type Description
    Transform

    Methods

    OnAfterDeserialize()

    Declaration
    public void OnAfterDeserialize()

    OnBeforeSerialize()

    Declaration
    public void OnBeforeSerialize()

    OnDrawGizmos()

    Declaration
    public void OnDrawGizmos()

    SetRenderer(Int32)

    Use this to set this Camera's current ScriptableRenderer to one listed on the Render Pipeline Asset. Takes an index that maps to the list on the Render Pipeline Asset.

    Declaration
    public void SetRenderer(int index)
    Parameters
    Type Name Description
    Int32 index

    The index that maps to the RendererData list on the currently assigned Render Pipeline Asset

    In This Article
    • Properties
      • antialiasing
      • antialiasingQuality
      • cameraStack
      • clearDepth
      • dithering
      • renderPostProcessing
      • renderShadows
      • renderType
      • requiresColorOption
      • requiresColorTexture
      • requiresDepthOption
      • requiresDepthTexture
      • scriptableRenderer
      • stopNaN
      • version
      • volumeLayerMask
      • volumeTrigger
    • Methods
      • OnAfterDeserialize()
      • OnBeforeSerialize()
      • OnDrawGizmos()
      • SetRenderer(Int32)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023