当前位置:网站首页>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,播放到头后永远播放最后一帧;
边栏推荐
- 都在说DevOps,你真正了解它吗?
- 数据库函数的用法「建议收藏」
- flutter 报错 No MediaQuery widget ancestor found.
- Is BigDecimal safe to calculate the amount? Look at these five pits~~
- They are all talking about Devops. Do you really understand it?
- The performance of major mainstream programming languages is PK, and the results are unexpected
- 找数字
- TechSmith Camtasia studio 2022.0.2 screen recording software
- Align left and right!
- Implementation of macro instruction of first-order RC low-pass filter in signal processing (easy touch screen)
猜你喜欢
5g TV cannot become a competitive advantage, and video resources become the last weapon of China's Radio and television
MySQL学习笔记——数据类型(2)
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
暑期复习,一定要避免踩这些坑!
lnx 高效搜索引擎、FastDeploy 推理部署工具箱、AI前沿论文 | ShowMeAI资讯日报 #07.04
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
Summer Review, we must avoid stepping on these holes!
力扣刷题01(反转链表+滑动窗口+LRU缓存机制)
深度学习 网络正则化
随机推荐
金额计算用 BigDecimal 就万无一失了?看看这五个坑吧~~
%f格式符
Ffmpeg Visual Studio development (IV): audio decoding
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
从0到1建设智能灰度数据体系:以vivo游戏中心为例
Weekly recruitment | senior DBA annual salary 49+, the more opportunities, the closer success!
Five minutes of machine learning every day: why do we need to normalize the characteristics of numerical types?
Summer Review, we must avoid stepping on these holes!
CentOS 6.3 下 PHP编译安装JSON模块报错解决
Implementation of web chat room
Quick introduction to automatic control principle + understanding
Is it safe to open an account online for stock speculation? Will you be cheated.
unity update 协程_Unity 协程的原理
每周招聘|高级DBA年薪49+,机会越多,成功越近!
Helix Swarm中文包发布,Perforce进一步提升中国用户体验
Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
[Dalian University of technology] information sharing of postgraduate entrance examination and re examination
Kubernets Pod 存在 Finalizers 一直处于 Terminating 状态
Implementation of macro instruction of first-order RC low-pass filter in signal processing (easy touch screen)