Class UniversalAdditionalCameraData
Class containing various additional camera data used by URP.
Inherited Members
Namespace: UnityEngine .Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
[DisallowMultipleComponent]
[RequireComponent(typeof(Camera))]
[ImageEffectAllowedInSceneView]
[ExecuteAlways]
public class UniversalAdditionalCameraData : MonoBehaviour, ISerializationCallbackReceiver, IAdditionalData
Properties
Name | Description |
---|---|
allow |
Returns true if this camera allows outputting to HDR displays. |
allow |
Returns true if this camera allows render in XR. |
antialiasing | Returns the current anti-aliasing mode used by this camera.
Antialiasing |
antialiasing |
Returns the current anti-aliasing quality used by this camera.
antialiasing |
camera |
Returns the camera stack. Only valid for Base cameras.
Will return null if it is not a Base camera.
Camera |
clear |
If true, this camera will clear depth value before rendering. Only valid for Overlay cameras. |
dithering | Returns true if this camera applies 8-bit dithering to the final render to reduce color banding |
render |
Returns true if this camera should render post-processing. |
render |
Controls if this camera should render shadows. |
render |
Returns the camera renderType.
Camera |
requires |
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. |
requires |
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. |
requires |
Controls if a camera should render depth.
The depth is available to be bound in shaders as _CameraDepthTexture.
Camera |
requires |
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. |
requires |
Returns true if this camera requires the volume framework to be updated every frame. |
reset |
Reset post-process history. |
screen |
Transform applied to screen coordinates when Screen Coordinates Override is active. |
screen |
Screen size used when Screen Coordinates Override is active. |
scriptable |
Returns the Scriptable |
stop |
Returns true if this camera should automatically replace NaN/Inf in shaders by a black pixel to avoid breaking some effects. |
use |
Returns true if the camera uses Screen Coordinates Override. |
version | The serialized version of the class. Used for upgrading. |
volume |
Returns the selected scene-layers affecting this camera. |
volume |
Returns the current volume stack used by this camera. |
volume |
Returns the Transform that acts as a trigger for Volume blending. |
Methods
Name | Description |
---|---|
On |
|
On |
|
On |
|
On |
|
On |
|
Set |
Use this to set this Camera's current Scriptable |