Version: 2019.4
LanguageEnglish
  • C#
Method group is Obsolete

Animation.animateOnlyIfVisible

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
Obsolete Use cullingType instead. public bool animateOnlyIfVisible;

Description

When turned on, Unity might stop animating if it thinks that the results of the animation won't be visible to the user.

This could save you some performance if you have things animating outside of the viewport, whose animation is only important when the user can actually see the thing that is being animated.