Animation.CrossFade
来源:互联网 发布:开淘宝亏钱了 编辑:程序博客网 时间:2024/06/10 02:22
Fades the animation with name animation
in over a period of time
seconds and fades other animations out.
If mode is PlayMode.StopSameLayer, animations in the same layer as animation
will be faded out while animation
is faded in. if mode is PlayMode.StopAll, all animations will be faded out while animation
is faded in.
If the animation is not set to be looping it will be stopped and rewound after playing.
using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour { public Animation anim; void Start() { anim = GetComponent<Animation>(); } void Update() { if (Mathf.Abs(Input.GetAxis("Vertical")) > 0.1F) anim.CrossFade("Run"); else anim.CrossFade("Idle"); }}
阅读全文
0 0
- Animation.CrossFade
- animation中CrossFade的问题
- Add a simple crossfade
- animation
- animation
- Animation
- Animation
- Animation
- Animation
- Animation
- Animation
- Animation
- Animation
- animation
- Animation
- Animation
- animation
- Animation
- Spring教程____SpringMVC入门小列子(主流模式,精简模式)
- SELinux
- Angular如何在模板驱动表单中自定义校验器
- DB2 创建数据库缓冲池和表空间
- jQuery-为动态添加的元素绑定事件
- Animation.CrossFade
- 泛型方法应用场景
- 遇到问题--Nginx---tomcat启动web程序访问静态资源时404找不到
- GetMapping 和 PostMapping
- 时间都去哪了(一)
- HDU 4085 Peach Blossom Spring(斯坦纳树)
- 左程云直播8.7-互为变形词、旋转词、manacher算法
- jQuery实现二级联动下拉框
- 变量的解构赋值