Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ParticleSystem.ForceOverLifetimeModule

Script interface for ForceOverLifetimeModule.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Struct
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public struct ParticleSystem.ForceOverLifetimeModule

Remarks

Use this module to apply forces to particles. The system applies forces to the particle velocities on each frame.
Additional Resources: ParticleSystem, _forceOverLifetime

Properties

Property

Description

enabledSpecifies whether the ForceOverLifetimeModule is enabled or disabled.
randomizedWhen randomly selecting values between two curves or constants, this flag causes the system to choose a new random force on each frame.
spaceSpecifies whether the modules applies the forces in local or world space.
xThe curve that defines particle forces in the x-axis.
xMultiplierDefines the x-axis multiplier.
yThe curve defining particle forces in the y-axis.
yMultiplierDefines the y-axis multiplier.
zThe curve defining particle forces in the z-axis.
zMultiplierDefines the z-axis multiplier.