找回密码
 注册帐号

扫一扫,访问微社区

animationstate.enabled 启用?

2014-12-31 06:02| 发布者: 杨炎| 查看: 2310| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: animationstate.weight 权重varweight: floatdescription描述the weight of animation动画权重this calculates the blend weights for one curve.它计算动画曲线的混合权重weights are distributed so that the top ...

animationstate.weight 权重

varweight: float

description描述

the weight of animation

动画权重

this calculates the blend weights for one curve.

计算动画曲线的混合权重

weights are distributed so that the top layer gets everything. if it doesn't use the full weight then the next layer gets to distribute the remaining weights and so on. once all weights are used by the top layers, no weights will be available for lower layers anymore unity uses fair weighting, which means if a lower layer wants 80% and 50% have already been used up, the layer will not use up all weights. instead it will take up 80% of the 50%.

权重分配从最高层获取.如果最高层没有获取全部权重,其下一层将获取其余的权重并以此类推.一旦顶层使用了全部权重,较低层将没有权重可用.这意味着在上层已经占用50%的情况下低层想占用80%时,此层占用的将不是全部权重的80%,而是50%中的80%.

相关阅读

文章点评
相关文章