pub struct LOD {
pub renderers: Vec<LODRenderer>,
pub screenRelativeHeight: f32,
pub fadeMode: Option<i32>,
pub fadeTransitionWidth: Option<f32>,
}
Expand description
LOD is a sub class of the Unity engine since version 3.5.0. Exert from Unity’s scripting documentation: Structure for building a LOD for passing to the SetLODs function.
Fields§
§renderers: Vec<LODRenderer>
List of renderers for this LOD level.
screenRelativeHeight: f32
§fadeMode: Option<i32>
i32: (5.0.0f4 - 5.0.4f1)
fadeTransitionWidth: Option<f32>
Width of the cross-fade transition zone (proportion to the current LOD’s whole length) [0-1]. Only used if it’s not animated. f32: (5.0.0f4 - 2022.3.2f1)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LOD
impl<'de> Deserialize<'de> for LOD
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LOD
impl RefUnwindSafe for LOD
impl Send for LOD
impl Sync for LOD
impl Unpin for LOD
impl UnwindSafe for LOD
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more