IPlayable 的一种实现,用于控制动画 RuntimeAnimatorController。
注意:您可以将 PlayableExtensions 方法与 AnimatorControllerPlayable 对象结合使用。
Null | 返回一个无效的 AnimatorControllerPlayable。 |
CrossFade | 使用标准化时间创建从当前状态到任何其他状态的淡入淡出效果。 |
CrossFadeInFixedTime | 使用以秒为单位的时间创建从当前状态到任何其他状态的淡入淡出效果。 |
GetAnimatorTransitionInfo | 返回 AnimatorTransitionInfo,其中包含有关当前过渡的信息。 |
GetBool | 返回给定布尔参数的值。 |
GetCurrentAnimatorClipInfo | 返回给定层当前状态中所有 AnimatorClipInfo 的数组。 |
GetCurrentAnimatorClipInfoCount | 返回当前状态中 AnimatorClipInfo 的数量。 |
GetCurrentAnimatorStateInfo | 返回 AnimatorStateInfo,其中包含有关当前状态的信息。 |
GetFloat | 返回给定 float 参数的值。 |
GetInteger | 返回给定整数参数的值。 |
GetLayerIndex | 返回具有给定名称的层的索引。 |
GetLayerName | 返回层名称。 |
GetLayerWeight | 返回指定索引处层的权重。 |
GetNextAnimatorClipInfo | 返回给定层下一个状态中所有 AnimatorClipInfo 的数组。 |
GetNextAnimatorClipInfoCount | 返回下一个状态中 AnimatorClipInfo 的数量。 |
GetNextAnimatorStateInfo | 返回 AnimatorStateInfo,其中包含有关下一个状态的信息。 |
GetParameter | 请参阅 AnimatorController.parameters。 |
HasState | 如果该层中存在状态,返回 true,否则返回 false。 |
IsInTransition | 如果给定层上存在过渡,返回 true,否则返回 false。 |
IsParameterControlledByCurve | 如果参数由曲线控制,返回 true,否则返回 false。 |
Play | 播放一个状态。 |
PlayInFixedTime | 播放一个状态。 |
ResetTrigger | 重置给定触发器参数的值。 |
SetBool | 设置给定布尔参数的值。 |
SetFloat | 将浮点值发送到 AnimatorController 以影响过渡。 |
SetInteger | 设置给定整数参数的值。 |
SetLayerWeight | 设置给定索引处层的权重。 |
SetTrigger | 设置给定触发器参数的值。 |
Create | 在 PlayableGraph 中创建 AnimatorControllerPlayable。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.