pub struct EmissionModule {
Show 19 fields pub enabled: bool, pub m_BurstCount: i32, pub cnt0: Option<i32>, pub cnt1: Option<i32>, pub cnt2: Option<i32>, pub cnt3: Option<i32>, pub cntmax0: Option<i32>, pub cntmax1: Option<i32>, pub cntmax2: Option<i32>, pub cntmax3: Option<i32>, pub m_Bursts: Option<Vec<ParticleSystemEmissionBurst>>, pub m_Type: Option<i32>, pub rate: Option<MinMaxCurve>, pub rateOverDistance: Option<MinMaxCurve>, pub rateOverTime: Option<MinMaxCurve>, pub time0: Option<f32>, pub time1: Option<f32>, pub time2: Option<f32>, pub time3: Option<f32>,
}
Expand description

EmissionModule is a sub class of the Unity engine since version 3.5.0. Exert from Unity’s scripting documentation: Script interface for the EmissionModule of a Particle System. See Also: ParticleSystem, ParticleSystem.emission.

Fields§

§enabled: bool

Specifies whether the EmissionModule is enabled or disabled.

§m_BurstCount: i32

The current number of bursts.

§cnt0: Option<i32>

u16: (3.5.0 - 5.3.8f2); i32: (5.4.0f3 - 5.6.0b4)

§cnt1: Option<i32>

u16: (3.5.0 - 5.3.8f2); i32: (5.4.0f3 - 5.6.0b4)

§cnt2: Option<i32>

u16: (3.5.0 - 5.3.8f2); i32: (5.4.0f3 - 5.6.0b4)

§cnt3: Option<i32>

u16: (3.5.0 - 5.3.8f2); i32: (5.4.0f3 - 5.6.0b4)

§cntmax0: Option<i32>

u16: (5.3.0f1 - 5.3.8f2); i32: (5.4.0f3 - 5.6.0b4)

§cntmax1: Option<i32>

u16: (5.3.0f1 - 5.3.8f2); i32: (5.4.0f3 - 5.6.0b4)

§cntmax2: Option<i32>

u16: (5.3.0f1 - 5.3.8f2); i32: (5.4.0f3 - 5.6.0b4)

§cntmax3: Option<i32>

u16: (5.3.0f1 - 5.3.8f2); i32: (5.4.0f3 - 5.6.0b4)

§m_Bursts: Option<Vec<ParticleSystemEmissionBurst>>

Vec: (5.6.0f1 - 2022.3.2f1)

§m_Type: Option<i32>

i32: (3.5.0 - 5.4.6f3)

§rate: Option<MinMaxCurve>

MinMaxCurve: (3.5.0 - 5.4.6f3)

§rateOverDistance: Option<MinMaxCurve>

The rate at which the emitter spawns new particles over distance. MinMaxCurve: (5.5.0f3 - 2022.3.2f1)

§rateOverTime: Option<MinMaxCurve>

The rate at which the emitter spawns new particles over time. MinMaxCurve: (5.5.0f3 - 2022.3.2f1)

§time0: Option<f32>

f32: (3.5.0 - 5.6.0b4)

§time1: Option<f32>

f32: (3.5.0 - 5.6.0b4)

§time2: Option<f32>

f32: (3.5.0 - 5.6.0b4)

§time3: Option<f32>

f32: (3.5.0 - 5.6.0b4)

Trait Implementations§

source§

impl Debug for EmissionModule

source§

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

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

impl<'de> Deserialize<'de> for EmissionModule

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for EmissionModule

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. 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 Twhere 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> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,