Skip to main content

UnityUrpCamera

Struct UnityUrpCamera 

Source
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: bool

m_RenderShadows.

§depth_texture_option: i64

Whether the camera makes the depth texture (m_RequiresDepthTextureOption).

§opaque_texture_option: i64

Whether the camera makes the opaque texture (m_RequiresOpaqueTextureOption).

§camera_type: i64

m_CameraType, a CameraRenderType: 0 base, 1 overlay.

§stack: Vec<PPtr>

The overlay cameras stacked on a base camera (m_Cameras).

§renderer_index: i64

The index of the pipeline asset’s renderer the camera draws with (m_RendererIndex); -1 for the asset’s default renderer.

§volume_layer_mask: u32

m_VolumeLayerMask.

§volume_trigger: PPtr

m_VolumeTrigger.

§volume_update_mode: i64

m_VolumeFrameworkUpdateModeOption: 0 every frame, 1 by script, 2 the pipeline asset’s setting.

§render_post_processing: bool

m_RenderPostProcessing.

§antialiasing: i64

m_Antialiasing, an AntialiasingMode: 0 none, 1 FXAA, 2 SMAA, 3 temporal.

§antialiasing_quality: i64

m_AntialiasingQuality: 0 low, 1 medium, 2 high.

§stop_nan: bool

m_StopNaN.

§dithering: bool

m_Dithering.

§clear_depth: bool

m_ClearDepth.

§allow_xr_rendering: bool

m_AllowXRRendering.

§allow_hdr_output: bool

m_AllowHDROutput.

§use_screen_coord_override: bool

m_UseScreenCoordOverride.

§screen_size_override: [f32; 4]

m_ScreenSizeOverride.

§screen_coord_scale_bias: [f32; 4]

m_ScreenCoordScaleBias.

§requires_depth_texture: bool

m_RequiresDepthTexture, the field the depth texture option replaced.

§requires_color_texture: bool

m_RequiresColorTexture, the field the opaque texture option replaced.

§taa: UnityTaaSettings

m_TaaSettings.

Trait Implementations§

Source§

impl Clone for UnityUrpCamera

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnityUrpCamera

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for UnityUrpCamera

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for UnityUrpCamera

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for UnityUrpCamera

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.