当前位置:网站首页>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,播放到头后永远播放最后一帧;
边栏推荐
- UFO: Microsoft scholars have proposed a unified transformer for visual language representation learning to achieve SOTA performance on multiple multimodal tasks
- Decimal, exponential
- Optimization method of deep learning neural network
- SAIC Maxus officially released its new brand "mifa", and its flagship product mifa 9 was officially unveiled!
- Quick introduction to automatic control principle + understanding
- 数据库函数的用法「建议收藏」
- Redis publish and subscribe
- 宽度精度
- Hexadecimal form
- 直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
猜你喜欢

The performance of major mainstream programming languages is PK, and the results are unexpected

Expose Ali's salary and position level

深度学习 神经网络案例(手写数字识别)

Halo effect - who says that those with light on their heads are heroes

都在说DevOps,你真正了解它吗?

Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture

Go zero micro service practical series (IX. ultimate optimization of seckill performance)

Preliminary exploration of flask: WSGI

Summer Review, we must avoid stepping on these holes!

Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
随机推荐
SAIC Maxus officially released its new brand "mifa", and its flagship product mifa 9 was officially unveiled!
Deep learning 7 transformer series instance segmentation mask2former
Optimization method of deep learning neural network
Ffmpeg Visual Studio development (IV): audio decoding
PLC模拟量输入 模拟量转换FC S_ITR (CODESYS平台)
重排数组
TechSmith Camtasia studio 2022.0.2 screen recording software
信号处理之一阶RC低通滤波器宏指令实现(繁易触摸屏)
Leetcode 1200 minimum absolute difference [sort] the way of leetcode in heroding
MP3是如何诞生的?
Guitar Pro 8win10 latest guitar learning / score / creation
openresty 限流
AI做题水平已超过CS博士?
PXE网络
Openresty current limiting
Kubernets Pod 存在 Finalizers 一直处于 Terminating 状态
%S format character
LeetCode 1200 最小绝对差[排序] HERODING的LeetCode之路
进制乱炖
Enter the width!