AnimatorStateInfo

时间:2014-05-01 13:29:12   收藏:0   阅读:592

AnimatorStateInfo

Namespace: UnityEngine

 
Description

Information about the current or next state.

 

AnimatorStateInfo.nameHash

var nameHash: int;
Description

Name of the State.

The hash is generated using Animator::StringToHash. The string to pass should include the parent layer‘s name. For example, if you have a Run state in the Base Layer the string to generate the hash will be Base Layer.Run.
 
AnimatorStateInfo.normalizedTime
var normalizedTime: float;
Description

Normalized time of the State.

The integer part is the number of time a state has been looped. The fractional part is the % (0-1) of progress in the current loop.

AnimatorStateInfo,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!