Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

ClothRenderer.pauseWhenNotVisible

Switch to Manual
var pauseWhenNotVisible: bool;
bool pauseWhenNotVisible;
pauseWhenNotVisible as bool

Description

Should the cloth simulation be paused when the ClothRenderer is not visible?

If this is enabled then the cloth will only be simulated if it is visible to any camera. This can improve performance of the physics simulation by avoiding updates for cloths that won't be seen.