Version: 2017.1
Using Blender and Rigify
PlayableGraph

Playables API

Playables API 提供一种通过组织和评估树状结构(称为 PlayableGraph)中的数据源来创建工具、效果或其他游戏机制的方法。PlayableGraph 允许您混合、融合和修改多个数据源,并通过单个输出播放它们。

Playables API 支持动画、音频和脚本。Playables API 还提供通过脚本与动画系统和音频系统进行交互的能力。

尽管 Playables API 目前仅限于动画、音频和脚本,但它是一种通用 API,最终可供视频和其他系统使用。

可播放项 (Playable) 与动画组件

动画系统已有一个图形编辑工具,这是一个仅限于播放动画的状态机系统。Playables API 设计得更灵活并支持其他系统。Playables API 还可创建状态机无法实现的图形。这些图形表示一个数据流,指示每个节点生成和使用的内容。此外,单个图形不限于单个系统。单个图形可能包含动画、音频和脚本的节点。

Playables API 的优点

  • Playables API 支持动态动画混合。这意味着场景中的对象可以提供自己的动画。例如,武器、宝箱和陷阱的动画可以动态添加到 PlayableGraph 并使用一段时间。

  • Playables API 可让您轻松播放单个动画,而不会产生创建和管理 AnimatorController 资源所涉及的开销。

  • Playables API 允许用户动态创建混合图并直接逐帧控制混合权重。

  • A PlayableGraph can be created at runtime, adding playable node as needed, based on conditions. Instead of having a huge “one-size-fit-all” graph where nodes are enabled and disabled, the PlayableGraph can be tailored to fit the exact need of the current situation.


  • 2017–07–04 页面已发布并只进行了有限的编辑审查

  • 2017–07–04 Unity 2017.1 中的新功能 NewIn20171

Using Blender and Rigify
PlayableGraph
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961