NoiseModule

Struct NoiseModule 

Source
pub struct NoiseModule {
Show 19 fields pub damping: bool, pub enabled: bool, pub frequency: f32, pub octaveMultiplier: f32, pub octaveScale: f32, pub octaves: i32, pub quality: i32, pub remap: MinMaxCurve, pub remapEnabled: bool, pub remapY: MinMaxCurve, pub remapZ: MinMaxCurve, pub scrollSpeed: MinMaxCurve, pub separateAxes: bool, pub strength: MinMaxCurve, pub strengthY: MinMaxCurve, pub strengthZ: MinMaxCurve, pub positionAmount: Option<MinMaxCurve>, pub rotationAmount: Option<MinMaxCurve>, pub sizeAmount: Option<MinMaxCurve>,
}
Expand description

NoiseModule is a sub class of the Unity engine since version 5.5.0f3. Exert from Unity’s scripting documentation: Script interface for the NoiseModule. The Noise Module allows you to apply turbulence to the movement of your particles. Use the low quality settings to create computationally efficient Noise, or simulate smoother, richer Noise with the higher quality settings. You can also choose to define the behavior of the Noise individually for each axis.See Also: ParticleSystem, ParticleSystem.noise.

Fields§

§damping: bool

Higher frequency noise reduces the strength by a proportional amount, if enabled.

§enabled: bool

Specifies whether the the NoiseModule is enabled or disabled.

§frequency: f32

Low values create soft, smooth noise, and high values create rapidly changing noise.

§octaveMultiplier: f32

When combining each octave, scale the intensity by this amount.

§octaveScale: f32

When combining each octave, zoom in by this amount.

§octaves: i32§quality: i32

Generate 1D, 2D or 3D noise.

§remap: MinMaxCurve

Define how the noise values are remapped.

§remapEnabled: bool

Enable remapping of the final noise values, allowing for noise values to be translated into different values.

§remapY: MinMaxCurve

Define how the noise values are remapped on the y-axis, when using the ParticleSystem.NoiseModule.separateAxes option.

§remapZ: MinMaxCurve

Define how the noise values are remapped on the z-axis, when using the ParticleSystem.NoiseModule.separateAxes option.

§scrollSpeed: MinMaxCurve

Scroll the noise map over the Particle System.

§separateAxes: bool

Control the noise separately for each axis.

§strength: MinMaxCurve

How strong the overall noise effect is.

§strengthY: MinMaxCurve

Define the strength of the effect on the y-axis, when using the ParticleSystem.NoiseModule.separateAxes option.

§strengthZ: MinMaxCurve

Define the strength of the effect on the z-axis, when using the ParticleSystem.NoiseModule.separateAxes option.

§positionAmount: Option<MinMaxCurve>

How much the noise affects the particle positions. MinMaxCurve: (2017.1.0b2 - 2022.3.2f1)

§rotationAmount: Option<MinMaxCurve>

How much the noise affects the particle rotation, in degrees per second. MinMaxCurve: (2017.1.0b2 - 2022.3.2f1)

§sizeAmount: Option<MinMaxCurve>

How much the noise affects the particle sizes, applied as a multiplier on the size of each particle. MinMaxCurve: (2017.1.0b2 - 2022.3.2f1)

Trait Implementations§

Source§

impl Debug for NoiseModule

Source§

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

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

impl<'de> Deserialize<'de> for NoiseModule

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 NoiseModule

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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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 T
where T: for<'de> Deserialize<'de>,