Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Cloth.useGravity

Switch to Manual
public var useGravity: bool;

Description

Should gravity affect the cloth simulation?

	// Dont use gravity on this cloth regardless if is Interactive or Skinned.

transform.GetComponent(Cloth).useGravity = false;