LightsModule

Struct LightsModule 

Source
pub struct LightsModule {
    pub color: bool,
    pub enabled: bool,
    pub intensity: bool,
    pub intensityCurve: MinMaxCurve,
    pub light: PPtr,
    pub maxLights: i32,
    pub randomDistribution: bool,
    pub range: bool,
    pub rangeCurve: MinMaxCurve,
    pub ratio: f32,
}
Expand description

LightsModule is a sub class of the Unity engine since version 5.5.0f3. Exert from Unity’s scripting documentation: Access the ParticleSystem Lights Module. This module allows you to attach real-time Lights to a percentage of your particles.The Lights Module is a simple and powerful module that allows particles to cast light onto their environment easily. Lights can inherit properties from the particles they are attached to, such as color and size. Point and Spot Lights are supported, including shadow casting and Light cookies.

Fields§

§color: bool§enabled: bool

Specifies whether the LightsModule is enabled or disabled.

§intensity: bool

Define a curve to apply custom intensity scaling to particle Lights.

§intensityCurve: MinMaxCurve§light: PPtr

Select what Light Prefab you want to base your particle lights on. PPtr<Light>: (5.5.0f3 - 2022.3.2f1)

§maxLights: i32

Set a limit on how many Lights this Module can create.

§randomDistribution: bool§range: bool

Define a curve to apply custom range scaling to particle Lights.

§rangeCurve: MinMaxCurve§ratio: f32

Choose what proportion of particles receive a dynamic light.

Trait Implementations§

Source§

impl Debug for LightsModule

Source§

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

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

impl<'de> Deserialize<'de> for LightsModule

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 LightsModule

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>,