pub struct MinMaxCurve {
pub maxCurve: AnimationCurve,
pub minCurve: AnimationCurve,
pub minMaxState: i32,
pub scalar: f32,
pub minScalar: Option<f32>,
}Expand description
MinMaxCurve is a sub class of the Unity engine since version 3.5.0. Exert from Unity’s scripting documentation: Script interface for a Min-Max Curve. Min-Max Curve. describes functions which take a value between a minimum and maximum limit and return a value based on ParticleSystem.MinMaxCurve.mode. Depending on the mode, this may return randomized values.
For modes that require curves, the value returned is dependent on one or two curves designed in the ParticleSystem Inspector, that can be evaluated to a single value between -n and n, where n is a constant also set in the Inspector. See ParticleSystemCurveMode for more information.See Also: ParticleSystem.
Fields§
§maxCurve: AnimationCurve§minCurve: AnimationCurve§minMaxState: i32§scalar: f32§minScalar: Option<f32>f32: (5.6.1f1 - 2022.3.2f1)
Trait Implementations§
Source§impl Debug for MinMaxCurve
impl Debug for MinMaxCurve
Source§impl<'de> Deserialize<'de> for MinMaxCurve
impl<'de> Deserialize<'de> for MinMaxCurve
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MinMaxCurve, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MinMaxCurve, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MinMaxCurve
impl Serialize for MinMaxCurve
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for MinMaxCurve
impl RefUnwindSafe for MinMaxCurve
impl Send for MinMaxCurve
impl Sync for MinMaxCurve
impl Unpin for MinMaxCurve
impl UnsafeUnpin for MinMaxCurve
impl UnwindSafe for MinMaxCurve
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