Class UniversalAdditionalCameraData
Inheritance
UniversalAdditionalCameraData
Syntax
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
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
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
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
|