pub struct UnityUrpCamera {Show 23 fields
pub render_shadows: bool,
pub depth_texture_option: i64,
pub opaque_texture_option: i64,
pub camera_type: i64,
pub stack: Vec<PPtr>,
pub renderer_index: i64,
pub volume_layer_mask: u32,
pub volume_trigger: PPtr,
pub volume_update_mode: i64,
pub render_post_processing: bool,
pub antialiasing: i64,
pub antialiasing_quality: i64,
pub stop_nan: bool,
pub dithering: bool,
pub clear_depth: bool,
pub allow_xr_rendering: bool,
pub allow_hdr_output: bool,
pub use_screen_coord_override: bool,
pub screen_size_override: [f32; 4],
pub screen_coord_scale_bias: [f32; 4],
pub requires_depth_texture: bool,
pub requires_color_texture: bool,
pub taa: UnityTaaSettings,
}Expand description
A camera’s URP data as stored (URP_CAMERA_DATA, m_Version 2, Universal RP 17.3). The options are
CameraOverrideOptions: 0 off, 1 on, 2 the pipeline asset’s setting.
Fields§
§render_shadows: boolm_RenderShadows.
depth_texture_option: i64Whether the camera makes the depth texture (m_RequiresDepthTextureOption).
opaque_texture_option: i64Whether the camera makes the opaque texture (m_RequiresOpaqueTextureOption).
camera_type: i64m_CameraType, a CameraRenderType: 0 base, 1 overlay.
stack: Vec<PPtr>The overlay cameras stacked on a base camera (m_Cameras).
renderer_index: i64The index of the pipeline asset’s renderer the camera draws with (m_RendererIndex); -1 for the asset’s
default renderer.
volume_layer_mask: u32m_VolumeLayerMask.
volume_trigger: PPtrm_VolumeTrigger.
volume_update_mode: i64m_VolumeFrameworkUpdateModeOption: 0 every frame, 1 by script, 2 the pipeline asset’s setting.
render_post_processing: boolm_RenderPostProcessing.
antialiasing: i64m_Antialiasing, an AntialiasingMode: 0 none, 1 FXAA, 2 SMAA, 3 temporal.
antialiasing_quality: i64m_AntialiasingQuality: 0 low, 1 medium, 2 high.
stop_nan: boolm_StopNaN.
dithering: boolm_Dithering.
clear_depth: boolm_ClearDepth.
allow_xr_rendering: boolm_AllowXRRendering.
allow_hdr_output: boolm_AllowHDROutput.
use_screen_coord_override: boolm_UseScreenCoordOverride.
screen_size_override: [f32; 4]m_ScreenSizeOverride.
screen_coord_scale_bias: [f32; 4]m_ScreenCoordScaleBias.
requires_depth_texture: boolm_RequiresDepthTexture, the field the depth texture option replaced.
requires_color_texture: boolm_RequiresColorTexture, the field the opaque texture option replaced.
taa: UnityTaaSettingsm_TaaSettings.