animation.localbounds 本地边界框

2014-12-31 02:02| 发布者: 杨炎| 查看: 2456| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: animation.localbounds 本地边界框varlocalbounds:boundsdescription描述aabb of this animation animation component in local space.在本地坐标空间这个动画的动画组件的aabb。by default it is computed based on ...

animation.localbounds 本地边界框

varlocalbounds: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 settingcullingtypetoanimationcullingtype.basedonclipbounds. value of localbounds is undefined when cullingtype is not set toanimationcullingtype.basedonclipboundsoranimationcullingtype.basedonuserbounds. when setting localbounds cullingtype will be set toanimationcullingtype.basedonuserboundsautomatically.

默认基于动画状态计算(即附加的动画剪辑),除非用户覆盖设定值localbounds。可以切换回到预先计算的边界框,通过设置cullingtype到animationcullingtype.basedonclipbounds。当cullingtype没有设置到animationcullingtype.basedonclipbounds或animationcullingtype.basedonuserbounds时,localbounds的值是未定义的。当设置localbounds cullingtype 将自动设置到animationcullingtype.basedonuserbounds。

参见:animationclip.localbounds属性,cullingtype,animationcullingtype.basedonclipbounds.

相关阅读

文章点评
相关文章