pub struct ColorBySpeedModule {
pub enabled: bool,
pub gradient: MinMaxGradient,
pub range: Vector2f,
}Expand description
ColorBySpeedModule is a sub class of the Unity engine since version 3.5.0. Exert from Unity’s scripting documentation: Script interface for the ColorBySpeedModule of a Particle System. See Also: ParticleSystem, ParticleSystem.colorBySpeed.
Fields§
§enabled: boolSpecifies whether the ColorBySpeedModule is enabled or disabled.
gradient: MinMaxGradient§range: Vector2fApply the color gradient between these minimum and maximum speeds.
Trait Implementations§
Source§impl Debug for ColorBySpeedModule
impl Debug for ColorBySpeedModule
Source§impl<'de> Deserialize<'de> for ColorBySpeedModule
impl<'de> Deserialize<'de> for ColorBySpeedModule
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 ColorBySpeedModule
impl RefUnwindSafe for ColorBySpeedModule
impl Send for ColorBySpeedModule
impl Sync for ColorBySpeedModule
impl Unpin for ColorBySpeedModule
impl UnwindSafe for ColorBySpeedModule
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