用于为 Animator 和动画 C# 作业提供扩展方法的静态类。
此类中的扩展方法可以直接在 Animator 上使用。
另请参阅:IAnimationJobPlayable。
AddJobDependency | 在动画器作业和提供的作业句柄代表的作业之间创建依赖关系。要添加多个作业依赖关系,请为每个需要在动画器作业之前运行的作业调用此方法。 |
BindCustomStreamProperty | 在 AnimationStream 中创建自定义属性,以将额外数据传递给图形中的下游动画作业。在 AnimationStream 中创建的自定义属性不存在于场景中。 |
BindSceneProperty | 创建一个 PropertySceneHandle,用于表示场景中 Transform 的 Component 属性上的新绑定。 |
BindSceneTransform | 创建一个 TransformSceneHandle,用于表示场景中 Animator 与 Transform 之间的新绑定。 |
BindStreamProperty | 创建一个 PropertyStreamHandle,用于表示已绑定到 Animator 的 Transform 的 Component 属性上的新绑定。 |
BindStreamTransform | 创建一个 TransformStreamHandle,用于表示已绑定到 Animator 的 Animator 与 Transform 之间的新绑定。 |
CloseAnimationStream | 关闭已使用 OpenAnimationStream 打开的流。 |
OpenAnimationStream | 在 Animator 上打开一个新流。 |
ResolveAllSceneHandles | 在运行作业时,新创建的句柄总是在下次访问时延迟解析。为了在评估作业时避免出现 CPU 峰值,您可以手动解析主线程中的所有句柄。 |
ResolveAllStreamHandles | 在运行作业时,新创建的句柄总是在下次访问时延迟解析。为了在评估作业时避免出现 CPU 峰值,您可以手动解析主线程中的所有句柄。 |
UnbindAllSceneHandles | Removes all PropertySceneHandles and TransformSceneHandles associated with the Animator instance. Use this method to manage the lifecycle of scene handles when the animated hierarchy changes. |
UnbindAllStreamHandles | Removes all PropertyStreamHandles and TransformStreamHandles associated with the Animator instance. Use this method to manage the lifecycle of stream handles when the animated hierarchy changes. |
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.