Class UniversalAdditionalCameraData
Inheritance
UniversalAdditionalCameraData
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Syntax
[DisallowMultipleComponent]
[RequireComponent(typeof(Camera))]
[ImageEffectAllowedInSceneView]
[MovedFrom("UnityEngine.Rendering.LWRP")]
public class UniversalAdditionalCameraData : MonoBehaviour, ISerializationCallbackReceiver
Properties
allowXRRendering
Returns true if this camera allows render in XR.
Declaration
public bool allowXRRendering { get; set; }
Property Value
antialiasing
Declaration
public AntialiasingMode antialiasing { get; set; }
Property Value
antialiasingQuality
Declaration
public AntialiasingQuality antialiasingQuality { get; set; }
Property Value
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
clearDepth
If true, this camera will clear depth value before rendering. Only valid for Overlay cameras.
Declaration
public bool clearDepth { get; }
Property Value
dithering
Declaration
public bool dithering { get; set; }
Property Value
renderPostProcessing
Returns true if this camera should render post-processing.
Declaration
public bool renderPostProcessing { get; set; }
Property Value
renderShadows
Controls if this camera should render shadows.
Declaration
public bool renderShadows { get; set; }
Property Value
renderType
Declaration
public CameraRenderType renderType { get; set; }
Property Value
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
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
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
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
scriptableRenderer
Declaration
public ScriptableRenderer scriptableRenderer { get; }
Property Value
stopNaN
Declaration
public bool stopNaN { get; set; }
Property Value
version
Declaration
public float version { get; }
Property Value
volumeLayerMask
Declaration
public LayerMask volumeLayerMask { get; set; }
Property Value
volumeTrigger
Declaration
public Transform volumeTrigger { get; set; }
Property Value
Methods
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
Implements
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
Implements
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
|