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
Returns true if this camera applies 8-bit dithering to the final render to reduce color banding
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
requiresVolumeFrameworkUpdate
Returns true if this camera requires the volume framework to be updated every frame.
Declaration
public bool requiresVolumeFrameworkUpdate { get; }
Property Value
scriptableRenderer
Declaration
public ScriptableRenderer scriptableRenderer { get; }
Property Value
stopNaN
Returns true if this camera should automatically replace NaN/Inf in shaders by a black pixel to avoid breaking some effects.
Declaration
public bool stopNaN { get; set; }
Property Value
version
Declaration
public float version { get; }
Property Value
volumeLayerMask
Returns the selected scene-layers affecting this camera.
Declaration
public LayerMask volumeLayerMask { get; set; }
Property Value
volumeStack
Declaration
public VolumeStack volumeStack { get; set; }
Property Value
volumeTrigger
Returns the Transform that acts as a trigger for Volume blending.
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
|