pub struct TriggerModule {Show 14 fields
pub enabled: bool,
pub enter: i32,
pub exit: i32,
pub inside: i32,
pub outside: i32,
pub radiusScale: f32,
pub colliderQueryMode: Option<i32>,
pub collisionShape0: Option<PPtr>,
pub collisionShape1: Option<PPtr>,
pub collisionShape2: Option<PPtr>,
pub collisionShape3: Option<PPtr>,
pub collisionShape4: Option<PPtr>,
pub collisionShape5: Option<PPtr>,
pub primitives: Option<Vec<PPtr>>,
}
Expand description
TriggerModule is a sub class of the Unity engine since version 5.4.0f3. Exert from Unity’s scripting documentation: Script interface for the TriggerModule. This module is useful for killing particles when they touch a set of collision shapes, or for calling a script command to let you apply custom particle behaviors when the trigger is activated.The example code for MonoBehaviour.OnParticleTrigger shows how the callback type action works.See Also: ParticleSystem, ParticleSystem.trigger.
Fields§
§enabled: bool
Specifies whether the TriggerModule is enabled or disabled.
enter: i32
Choose what action to perform when particles enter the trigger volume.
exit: i32
Choose what action to perform when particles leave the trigger volume.
inside: i32
Choose what action to perform when particles are inside the trigger volume.
outside: i32
Choose what action to perform when particles are outside the trigger volume.
radiusScale: f32
A multiplier Unity applies to the size of each particle before it processes overlaps.
colliderQueryMode: Option<i32>
Determines whether collider information is available when calling [[ParticleSystem::GetTriggerParticles]]. i32: (2020.2.0b1 - 2022.3.2f1)
collisionShape0: Option<PPtr>
PPtr<Component
>: (5.4.0f3 - 2020.2.0a13)
collisionShape1: Option<PPtr>
PPtr<Component
>: (5.4.0f3 - 2020.2.0a13)
collisionShape2: Option<PPtr>
PPtr<Component
>: (5.4.0f3 - 2020.2.0a13)
collisionShape3: Option<PPtr>
PPtr<Component
>: (5.4.0f3 - 2020.2.0a13)
collisionShape4: Option<PPtr>
PPtr<Component
>: (5.4.0f3 - 2020.2.0a13)
collisionShape5: Option<PPtr>
PPtr<Component
>: (5.4.0f3 - 2020.2.0a13)
primitives: Option<Vec<PPtr>>
Vec<PPtr<Component
>>: (2020.2.0b1 - 2022.3.2f1)