ParticleSystem.ExternalForcesModule
Script interface for ExternalForcesModule.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Struct
- Namespace: UnityEngine
- Assembly: UnityEngine.ParticleSystemModule
public struct ParticleSystem.ExternalForcesModule
Remarks
This module makes ParticleSystemForceField and WindZone components to affect the Particle System.
Additional Resources: ParticleSystem, _externalForces
Properties
Property | Description |
|---|---|
| enabled | Specifies whether the ExternalForcesModule is enabled or disabled. |
| influenceCount | The number of Force Fields explicitly provided to the influencers list. |
| influenceFilter | Apply all Force Fields belonging to a matching Layer to this Particle System. |
| influenceMask | Particle System Force Field Components with a matching Layer affect this Particle System. |
| multiplier | Multiplies the magnitude of external forces affecting the particles. |
| multiplierCurve | Multiplies the magnitude of applied external forces. |
Methods
Method | Description |
|---|---|
| AddInfluence | Adds a ParticleSystemForceField to the influencers list. |
| GetInfluence | Gets the ParticleSystemForceField at the given index in the influencers list. |
| IsAffectedBy | Determines whether any particles are inside the influence of a Force Field. |
| RemoveAllInfluences | Removes every Force Field from the influencers list. |
| RemoveInfluence | Removes the Force Field from the influencers list at the given index. |
| SetInfluence | Assigns the Force Field at the given index in the influencers list. |