SkinnedMeshRenderer.localBounds 本地边界框

var localBounds : Bounds

Description描述

AABB of this Skinned Mesh in its local space.

在本地坐标空间这个蒙皮网格的AABB。

It is precomputed on import for imported models based on animations associated with that model, which means that the bounding box might be much bigger than the mesh itself. It is recomputed every time when updateWhenOffscreen is enabled, but in this case it would be exactly the size of the mesh at that frame.

这是基于动画相关导入的模型预先计算的,这意味着边界框可能比网格本身更大。当updateWhenOffscreen被启用,每次重新计算,但是这种情况下,将是那一帧正好网格的大小。

参见:updateWhenOffscreen

最后修改:2011年9月18日 Sunday 12:12

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。