Animation.animateOnlyIfVisible 可见时动画

var animateOnlyIfVisible : bool

Description描述

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

如果打开这个选项,Unity可能在它认为用户不会看到当前动画的时候停止播放。

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.

当你有一些动画在视口之外播放的时候,这个选项可以帮助你节省一些性能,比如那些只有在用户实际上看得见的物体做动画的时候。

Page last updated: 2011-1-12