ExternalForcesModule
struct in UnityEngine
/
Implemented in:UnityEngine.ParticleSystemModule
Switch to Manual
Description 描述
Script interface for the External Forces module.
See Also: ParticleSystem, ParticleSystem.externalForces.
Properties 属性
| enabled | Enable or disable the External Forces module. | ||
| 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 applied external forces. | ||
| multiplierCurve | Multiplies the magnitude of applied external forces. |
Public Methods 公共方法
| AddInfluence | Adds a ParticleSystemForceField to the influencers list. | ||
| GetInfluence | Returns 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 all Force Fields 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. |