Unity3D说明文档翻译-Animation Integration

Animation Integration

动画集成

Animation allows for each transition between control states to be fully animated using Unity’s animation system. This is the most powerful of the transition modes due the the number of properties that can be animated simultaneously.

动画考虑到每个在控制状态间的转变以给它们使用Unity的动画系统充分的做动画.这是最强大的转变模式通过许多属性可同时做动画.

To use the Animation transition mode, an Animator Component needs to be attached to the controller element. This can be done automatically by clicking “Auto Generate Animation”. This also generates an Animator Controller with states already set up, which will need to be saved.

使用动画转变模式,一个动画编辑器组件需要被附加到控制器元素.这可通过点击自动生成动画按钮自动做到.

The new Animator controller is ready to use straight away. Unlike most Animator Controllers, this controller also stores the animations for the controller’s transitions and these can be customised, if desired.

新的动画控制器准备立即使用.不同于大部分动画控制器,这个控制器也存储动画用于控制器的转变且这些如果需要可被自定义.

For example, if a Button element with an Animator controller attached is selected, the animations for each of the button’s states can be edited by opening the Animation window (Window>Animation).

例如,如果一个带有一个动画控制器的按钮元素选中,按钮的每个状态的动画可通过打开动画窗口(窗口>动画)编辑.

There is an Animation Clip pop-up menu to select the desired clip. Choose from “Normal”, “Highlighted”, “Pressed” and “Disabled”.

这是一个动画剪辑快捷菜单以选择需要的剪辑.可选择正常,高亮,按下不可用.

The Normal State is set by the values on button element itself and can be left empty. On all other states, the most common configuration is a single keyframe at the start of the timeline. The transition animation between states will be handled by the Animator.

正常状态通过按钮元素本身值设置,可以为空.在其他状态,最常用配置是一个单关键帧在时间轴的开始.在状态间的转变动画将被动画编辑器处理.

As an example, the width of the button in the Highlighted State could be changed by selecting the Highlighted state from the Animation Clip pop up menu and with the playhead at the start of the time line:

作为一个例子,按钮的宽在高亮状态由动画剪辑弹出菜单选择高亮状态改变,而随着在时间轴开始的播放指示器:

· Select the record Button

· Change the width of the Button in the inspector

· Exit the record mode.

· 选择记录按钮

· 在检视面板改变按钮宽带

· 退出记录模式

Change to play mode to see how the button grows when highlighted.

转向播放模式查看当高亮时按钮如何变化

Any number of properties can have their parameters set in this one keyframe.

任何数量属性都可以有它们的参数在这个关键帧内设置.

Several buttons can share the same behaviour by sharing Animator Controllers.

通过共享动画控制器几个按钮可共享相同行为.

The UI Animation transition mode is not compatible with Unity’s legacy animation system.You should only use the Animator Component.

UI动画转变模式不兼容Unity的遗留动画系统.你需要只使用动画组件.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值