当前位置:网站首页>Unity动画Animation Day05
Unity动画Animation Day05
2022-07-04 14:13:00 【@夜魅】
常用API函数:
bool isPlay = animation.isPlaying;
bool isPlay = animation.IsPlaying("动画名");
animation.Play("动画名");
animation.PlayQueued("动画名");
animation.CrossFade("动画名");
animation["动画名"].speed = 5;
animation["动画名"].wrapMode = WrapMode.PingPong;
animation["动画名"].length;
animation["动画名"].time;
Animation View:
1、通过动画视图可以直接创建和修改动画片段(Animation Clips)
2、显示动画视图:window -- Animation
创建动画片段:
1、为物体添加Animation组件
2、在动画视图中创建片段
录制动画片段:
1、录制步骤:
点击录制按钮,开始录制动画
添加关键帧Add Property,选择组件类型
选择关键帧,调整时间点
在Scene或Inspector面板设置属性
点击录制按钮,结束录制动画
2、任何组件以及材质的属性都可进行动画处理,即使是自定义脚本组件的公共变量。
时间线:
1、可以单击时间线上的任何位置预览或修改动画片段
2、数字显示为秒数和帧数(例如:1:30表示1秒和30帧)
3、使用按钮跳到上一个或下一个关键帧,也可以键入特定数直接跳到该帧。
Animation组件属性:
动画Animation:当前动画
动画列表Animations:可以从脚本访问的动画列表
自动播放Play Automatically:启动游戏时自动播放的动画
动画片段属性:
包裹模式Wrap Mode:动画结束后的处理方式。
--默认Default,使用动画剪辑中的处理方法
--播放一次Once,播放到头后停止;
--循环播放Loop,播放到头后再重头播放;
--乒乓播放PingPong,播放到头后再反向播放;
--固定永久Clamp Forever,播放到头后永远播放最后一帧;
边栏推荐
- IO flow: node flow and processing flow are summarized in detail.
- numpy笔记
- On the implementation plan of MySQL explain
- When synchronized encounters this thing, there is a big hole, pay attention!
- 左右对齐!
- Weibo and Huya advance into interest communities: different paths for peers
- go-zero微服务实战系列(九、极致优化秒杀性能)
- Luo Gu - some interesting questions
- IO流:节点流和处理流详细归纳。
- Five minutes of machine learning every day: why do we need to normalize the characteristics of numerical types?
猜你喜欢
深度学习 神经网络的优化方法
MySQL学习笔记——数据类型(2)
Halcon knowledge: NCC_ Model template matching
Preliminary exploration of flask: WSGI
Redis 發布和訂閱
Luo Gu - some interesting questions 2
Details of FPGA underlying resources
How to handle exceptions in multithreading?
Kubernets pod exists finalizers are always in terminating state
如何搭建一支搞垮公司的技术团队?
随机推荐
Is BigDecimal safe to calculate the amount? Look at these five pits~~
Guitar Pro 8win10 latest guitar learning / score / creation
Introduction to asynchronous task capability of function calculation - task trigger de duplication
Kubernets Pod 存在 Finalizers 一直处于 Terminating 状态
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
Redis publier et s'abonner
找数字
对话龙智高级咨询顾问、Atlassian认证专家叶燕秀:Atlassian产品进入后Server时代,中国用户应当何去何从?
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
C1 certification learning notes 3 -- Web Foundation
UFO:微软学者提出视觉语言表征学习的统一Transformer,在多个多模态任务上达到SOTA性能!...
Openresty redirection
Techsmith Camtasia Studio 2022.0.2屏幕录制软件
音视频技术开发周刊 | 252
Huawei cloud database DDS products are deeply enabled
.Net 应用考虑x64生成
Quick introduction to automatic control principle + understanding
Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
2022 financial products that can be invested
Go zero micro service practical series (IX. ultimate optimization of seckill performance)