Version: 2021.1
LanguageEnglish
  • C#

ParticleSystemForceField.gravityFocus

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public float gravityFocus;

Description

When using the gravity force, set this value between 0 and 1 to control the focal point of the gravity effect.

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. See Also: ParticleSystemForceField.