Experimental: this API is experimental and might be changed or removed in the future.

AnimationScriptPlayable

struct in UnityEngine.Experimental.Animations


实现接口:IAnimationJobPlayable, IPlayable

切换到手册

描述

一个可以运行自定义多线程动画作业的 Playable

此可播放项 (Playable) 允许创建一个自定义 C# 作业,该作业将在 PlayableGraph 中的动画处理通道中提供对 AnimationStream 的读写访问权限。该 C# 作业必须实现 IAnimationJob 接口。

注意:您可以将 PlayableExtensions 方法与 AnimationScriptPlayable 对象结合使用。

另请参阅:IAnimationJobAnimationScriptPlayable.Create

公共函数

GetJobData获取可播放项中包含的作业数据。
GetProcessInputs返回有关是否处理可播放项输入的信息。
SetJobData在可播放项中设置新的作业数据。
SetProcessInputs设置是否处理输入的新值。

静态函数

Create在 PlayableGraph 中创建 AnimationScriptPlayable。