Version: 2018.4
Humanoid Avatars
使用 Animation 视图

Animation Window Guide

The Animation Window in Unity allows you to create and modify Animation Clips directly inside Unity. It is designed to act as a powerful and straightforward alternative to external 3D animation programs. In addition to animating movement, the editor also allows you to animate variables of materials and components and augment your Animation Clips with Animation Events, functions that are called at specified points along the timeline.

See the pages about Animation import and Animation Scripting for further information about these subjects.


Animation 窗口和 Timeline 窗口之间有何差异?

Timeline 窗口

Timeline 窗口可用于创建影片内容、游戏序列、音频序列和复杂的粒子效果。可以在同一序列(例如有角色与景物交互的过场动画或脚本序列)中为许多不同的游戏对象设置动画。在 Timeline 窗口中,可以有多种类型的轨道,每个轨道可以包含多个可以移动、修剪和混合的剪辑。这对于创建更复杂的动画序列非常有用,因为这些动画序列需要将许多不同的游戏对象编排在一起。

Timeline 窗口比 Animation 窗口更晚推出。它是在版本 2017.1 中添加到 Unity 的,并取代了 Animation 窗口的一些功能。要了解 Unity 中的 Timeline 窗口,请访问用户手册的 Timeline 部分

Timeline 窗口,其中显示编排在同一序列中的许多不同类型的剪辑
Timeline 窗口,其中显示编排在同一序列中的许多不同类型的剪辑

Animation 窗口

Animation 窗口可用于创建各个动画剪辑以及查看导入的动画剪辑。动画剪辑存储单个游戏对象或单个游戏对象层级视图的动画。Animation 窗口可用于为游戏中的独立对象(例如摆动的钟摆、滑动的门或旋转的硬币)设置动画。Animation 窗口一次只能显示一个动画剪辑。

Animation 窗口是在 Unity 4.0 版中添加的。Animation 窗口是比 Timeline 窗口更旧的功能。Animation 窗口提供了一种创建动画剪辑和为单个游戏对象设置动画的简单方法,而在其中创建的剪辑可以用 Animator Controller 进行组合和混合。但是,要创建涉及许多不同游戏对象的更复杂序列,应使用 Timeline 窗口(见上文)。

Animation 窗口的用户界面中有一个“时间轴”(标有时间刻度的水平条),但这与 Timeline 窗口是分开的。

要了解 Unity 中的 Animation 窗口,请访问用户手册的 Animation 部分

以关键帧清单模式显示的 Animation 窗口,其中显示在单个动画剪辑中一起动画化的对象层级视图(在本示例中是具有多个活动部件的机械臂)
以关键帧清单模式显示的 Animation 窗口,其中显示在单个动画剪辑中一起动画化的对象层级视图(在本示例中是具有多个活动部件的机械臂)
Humanoid Avatars
使用 Animation 视图