当前位置:网站首页>Animation animation in unity is played backwards and forwards
Animation animation in unity is played backwards and forwards
2022-07-21 01:03:00 【Warblers flying】
public Animation animation; void Start() { PlayAnimBack(Animation animation); } /// <summary> /// Animation replay /// </summary> /// <param name="animation"></param> public void PlayAnimBack(Animation animation) { if(animation!=null) { animation[animation.clip.name].time = animation[animation.clip.name].length; animation[animation.clip.name].speed = -1; animation.Play(animation.clip.name); } } /// <summary> /// Animation replay /// </summary> /// <param name="animation"></param> public void PlayAnim(Animation animation) { if(animation!=null) { animation[animation.clip.name].time = 0; animation[animation.clip.name].speed = 1; animation.Play(animation.clip.name); } }
边栏推荐
- 【模型评估】
- There are two key skills for high availability of microservices, which you must use
- CCTV news news news channel "Jinan opens catering quota invoice by hand"_ People's network
- Glue terraform ecology to kubernetes world
- Qt:Could not find qmake spec ‘default’. Error while parsing file xxx. pro. Giving up
- SAP ABAP字符和字符串变量隐式转换的一些规则
- 2022/7/19
- 2022年优秀灾难恢复解决方案
- 【概率和计数】
- How to use parallel programming to improve task execution efficiency
猜你喜欢
2022年优秀灾难恢复解决方案
想低成本保障軟件安全?五大安全任務值得考慮
【Pygame小游戏】魂斗罗经典BOSS都回来了 准备好再次击败他们了吗?(附源码)
虚拟机中docker安装mysql远程无法访问解决方法
Qt:Could not find qmake spec ‘default’. Error while parsing file xxx. pro. Giving up
读取Geotiff栅格文件赋值给点
Network flow, bipartite graph and graph matching
Qt:Could not find qmake spec ‘default’.Error while parsing file xxx.pro. Giving up
性能监控 之 Prometheus 三剑客安装案例
归并排序及优化
随机推荐
CCTV news news "Suzhou restaurant manual tearing quota invoice" news channel_ People's network
合规视角下的数据安全技术前沿与应用
校验码在线计算工具
Glue terraform ecology to kubernetes world
Win11暂存文件夹是什么?Win11在线升级暂存文件夹在哪
Web APIs DOM page special effects scrolling events and loading events
2022/7/19
How to check whether win11 can be upgraded to 22h2? How to upgrade 22h2 in win11
冒泡排序和快速排序
Solution to remote access failure of docker installation MySQL in virtual machine
PX4使用P900数传
Under what circumstances is it necessary for enterprises to introduce distributed databases?
Xshell&&putty配色方案
Makefile details
C # understand these 100 + lines of code, and you will really get started (Classic)
【JVM 系列】JVM 四大引用和对象的判断
哈希表(HashTable)
Leetcode- number of occurrences of numbers in the array (single dog problem)
盘点优秀tkinter开源贡献者【pypi】
张量的通俗理解