当前位置:网站首页>Unity Animator动画与状态机
Unity Animator动画与状态机
2022-07-25 05:46:00 【饿掉鱼】
首先创建一个Animator并拖拽赋给object

双击后会有这个界面.这里就是k动画的
右上角为目标帧数.上方为录制和播放
调整好帧数后开始录制
然后可以对物体进行移动缩放旋转了.unity会自动记录

然后进入状态机界面对animator逻辑进行调整
比如放了技能进入技能动画.死亡时进入死亡动画
Entry指定的是默认动画

制造关联.当动画结束,或者满足条件时,进入下个动画
比如这里,我设置了一个Back布尔值.B的speed是-1(倒放)
这样,当Back值为true时,就执行倒放动画(菜单栏的收缩)

点击关系线进行条件判断设置 直观地看到,当back值为true时动画流从a到b
如果要更改布尔值,在脚本中get animator并setbool(string BoolName,bool Bool)就OK了
边栏推荐
猜你喜欢

50 places are limited to open | with the news of oceanbase's annual press conference coming!

Idea commonly used 10 shortcut keys

Leetcode 237. 删除链表中的节点

Arm PWN basic tutorial

Microservice gateway component

HTB-Devel
![(16)[系统调用]追踪系统调用(3环)](/img/b0/011351361135fd9f8e2d0d31749f73.png)
(16)[系统调用]追踪系统调用(3环)

ECS is exclusive to old users, and the new purchase of the remaining 10 instances is as low as 3.6% off

The difference between function and task in SystemVerilog

(2022年牛客多校一)I-Chiitoitsu(期望DP)
随机推荐
剖析kubernetes集群内部DNS解析原理
(14)[驱动开发]配置环境 VS2019 + WDK10 写 xp驱动
编程大杂烩(一)
Calculate BDP value and wnd value
(Niuke multi School II) G-LINK with monotonic subsequence (construction question)
easyrecovery免费数据恢复工具操作简单一键恢复数据
leetcode/二进制加法
Microservice gateway component
线性代数(三)
AirServer 7.3.0中文版手机设备无线传送电脑屏幕工具
HTB-Beep
Common methods of JS operation array
The difference between $write and $display in SystemVerilog
Mechanism and principle of multihead attention and masked attention
Terminate 5g chip cooperation! The official response of Intel and zhanrui came
(2022牛客多校)D-Link with Game Glitch(spfa)
(2022年牛客多校一)I-Chiitoitsu(期望DP)
编程大杂烩(二)
Leetcode 202. happy number (not happy at all)
Y76. Chapter IV Prometheus large factory monitoring system and practice -- Prometheus advanced (VII)