当前位置:网站首页>Animation 动画片段跳帧、动画队列
Animation 动画片段跳帧、动画队列
2022-07-17 02:09:00 【心前阳光】
跳帧
作用
跳转到动画片段的任意帧数
public Animation anim;
void Update()
{
if (Input.GetMouseButtonDown(0))
{
anim.Stop();
anim["move"].clip.SampleAnimation(this.gameObject, 0);
}
if (Input.GetMouseButtonDown(1))
{
anim.Play("move");
}
}
动画队列
作用
按照顺序播放动画片段
void Start()
{
//move动画播放完毕后 播放scale动画
anim.PlayQueued("move");
anim.PlayQueued("scale");
}
边栏推荐
- leetcode:50. Pow(x, n)
- LeetCode 931:下降路径最小和
- Binary search (leetcode704. very simple and necessary)
- 渗透测试-01信息收集
- 【MySQL】在云服务器上安装配置mysql,并使用IDEA连接
- AI 之 OpenCvSharp 大图找小图(案例版)
- NIM boben problem
- options has an unknown property ‘before‘
- Boston house price analysis assignment summary
- 2.9.2 digital type processing and convenient methods of ext JS
猜你喜欢
随机推荐
GNOME-BOXES虚拟机创建安装
h5内嵌app,后和web如何进行通信?h5和web通信
leetcode:78. subset
波士顿房价分析作业总结
Nim博奔问题
Go语言中的Iota关键字怎么使用
The fourth day of the third question of daily Luogu
STM32 serial port sending and receiving multiple data tutorial based on gas sensor practice
Digital type processing and convenient method of ext JS
Bias and variance
GoogLeNet
第二章 线性表
Method of realizing horizontal and vertical centering of unknown width and height elements
JMeter中如何实现接口之间的关联?
爬虫学习(5):手把手教你爬虫requests实战演练
leetcode 222. 完全二叉树的节点个数(必会)
当 mysql 表从压缩表变成普通表会发生什么?
上班摸鱼打卡模拟器微信小程序源码
MySQL 增删查改(基础)
Game theory of catching lice








