Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


gravity

Apply gravity to particles within the volume of the Force Field.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public ParticleSystem.MinMaxCurve gravity { get; set; }

Remarks

Particles affected by the gravity effect will be attracted towards the focal point of the gravity. This can be set using the ParticleSystemForceField.gravityFocus property. Additional Resources: ParticleSystemForceField.