Animation.localBounds 本地边界框
var localBounds : Bounds
Description描述
AABB of this Animation animation component in local space.
在本地坐标空间这个动画的动画组件的AABB。
By default it is computed based on animation states (i.e. attached animation clips), unless user overrides it by setting value to localBounds. You can switch back to precomputed bounds by setting cullingType to AnimationCullingType.BasedOnClipBounds. Value of localBounds is undefined when cullingType is not set to AnimationCullingType.BasedOnClipBounds or AnimationCullingType.BasedOnUserBounds. When setting localBounds cullingType will be set to AnimationCullingType.BasedOnUserBounds automatically.
默认基于动画状态计算(即附加的动画剪辑),除非用户覆盖设定值localBounds。可以切换回到预先计算的边界框,通过设置cullingType到AnimationCullingType.BasedOnClipBounds。当cullingType没有设置到AnimationCullingType.BasedOnClipBounds 或 AnimationCullingType.BasedOnUserBounds时,localBounds的值是未定义的。当设置localBounds cullingType 将自动设置到AnimationCullingType.BasedOnUserBounds。
参见: AnimationClip.localBounds 属性, cullingType, AnimationCullingType.BasedOnClipBounds.