文档

Unity Engine

Unity Engine

gravity

Apply gravity to particles within the volume of the Force Field.
阅读时间1 分钟最后更新于 1 个月前

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.