pub struct SizeBySpeedModule {
pub curve: MinMaxCurve,
pub enabled: bool,
pub range: Vector2f,
pub separateAxes: Option<bool>,
pub y: Option<MinMaxCurve>,
pub z: Option<MinMaxCurve>,
}Expand description
SizeBySpeedModule is a sub class of the Unity engine since version 3.5.0. Exert from Unity’s scripting documentation: Script interface for the SizeBySpeedModule. This module controls the size of particles based on their speeds.See Also: ParticleSystem, ParticleSystem.sizeBySpeed.
Fields§
§curve: MinMaxCurve§enabled: boolSpecifies whether the SizeBySpeedModule is enabled or disabled.
range: Vector2fSet the minimum and maximum speed that this modules applies the size curve between.
separateAxes: Option<bool>Set the size by speed on each axis separately. bool: (5.4.0f3 - 2022.3.2f1)
y: Option<MinMaxCurve>Size by speed curve for the y-axis. MinMaxCurve: (5.4.0f3 - 2022.3.2f1)
z: Option<MinMaxCurve>Size by speed curve for the z-axis. MinMaxCurve: (5.4.0f3 - 2022.3.2f1)
Trait Implementations§
Source§impl Debug for SizeBySpeedModule
impl Debug for SizeBySpeedModule
Source§impl<'de> Deserialize<'de> for SizeBySpeedModule
impl<'de> Deserialize<'de> for SizeBySpeedModule
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 SizeBySpeedModule
impl RefUnwindSafe for SizeBySpeedModule
impl Send for SizeBySpeedModule
impl Sync for SizeBySpeedModule
impl Unpin for SizeBySpeedModule
impl UnwindSafe for SizeBySpeedModule
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