Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


gravityFocus

When using the gravity force, set this value between 0 and 1 to control the focal point of the gravity effect.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public float gravityFocus { get; set; }

Remarks

Setting a value of 0 causes particles to be attracted to the center of the volume, whereas setting a value of 1 will result in particles being attracted to the outer edge of the shape. Setting a value in between 0 and 1 will move the focal point between the inner and outer extents of the volume.
Additional Resources: ParticleSystemForceField