Skip to main content

UnityUrpSettings

Struct UnityUrpSettings 

Source
pub struct UnityUrpSettings {
Show 16 fields pub main_light_mode: i64, pub main_light_shadows: bool, pub additional_lights_mode: i64, pub additional_light_shadows: bool, pub reflection_probe_blending: bool, pub reflection_probe_box_projection: bool, pub reflection_probe_atlas: bool, pub shadow_distance: f32, pub shadow_cascades: u8, pub soft_shadows: bool, pub mixed_lighting: bool, pub light_cookies: bool, pub light_layers: bool, pub lod_cross_fade: bool, pub sh_eval_mode: i64, pub light_probe_system: i64,
}
Expand description

The lighting and shadow settings of a Universal Render Pipeline asset as stored (UniversalRenderPipelineAsset, asset version 13; this module’s docs state the verified layout): the light modes as LightRenderingMode numbers them (0 disabled, 1 per pixel, 2 per vertex), the shadow cascade count (1 to 4), the settings that decide which of a pass’s keywords the pipeline sets.

Fields§

§main_light_mode: i64

The main light’s rendering mode (m_MainLightRenderingMode).

§main_light_shadows: bool

Whether the main light casts shadows.

§additional_lights_mode: i64

The additional lights’ rendering mode (m_AdditionalLightsRenderingMode).

§additional_light_shadows: bool

Whether additional lights cast shadows.

§reflection_probe_blending: bool

Whether reflection probes blend.

§reflection_probe_box_projection: bool

Whether reflection probes use box projection.

§reflection_probe_atlas: bool

Whether reflection probes are packed into an atlas.

§shadow_distance: f32

m_ShadowDistance.

§shadow_cascades: u8

m_ShadowCascadeCount.

§soft_shadows: bool

Whether soft shadows are supported.

§mixed_lighting: bool

Whether mixed lighting is supported.

§light_cookies: bool

Whether light cookies are supported.

§light_layers: bool

Whether light layers are supported.

§lod_cross_fade: bool

Whether LOD cross-fading is enabled.

§sh_eval_mode: i64

ShEvalMode: 0 auto, 1 per vertex, 2 mixed, 3 per pixel.

§light_probe_system: i64

LightProbeSystem: 0 legacy light probes, 1 probe volumes.

Trait Implementations§

Source§

impl Clone for UnityUrpSettings

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 UnityUrpSettings

Source§

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

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

impl PartialEq for UnityUrpSettings

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 UnityUrpSettings

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 UnityUrpSettings

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.