![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
【人物动画】
Zok93
热情中的冷静让人清醒,冷静中的热情使人执着。
展开
-
【Unity】Unity中开场动画设置(二)
上一篇文章中对Unity中视频的播放设置是在PC端配置的经过测试后发现并不能在手机端运行因为在移动设备上我们需要使用另一种方式来播放视频注意:在移动端,unity并不提供MovieTexture,AVPro QuickTime也用不了,其最基本的显示方案使用通过 PlayFullScreenMovie ()函数进行全屏播放,根据其官网解释,主要有以下方面:(1)视频原创 2015-07-16 10:01:34 · 26717 阅读 · 0 评论 -
【Unity】人物动画声音随机播放,资源加载
using UnityEngine;using System.Collections;//脚本挂载在需要更换动画和声音的主角身上public class ChanCtrl : MonoBehaviour { private Animator _animator; // 主角身上的状态机 private AnimatorStateInfo _currentStateInfo; //原创 2015-06-10 09:45:17 · 5161 阅读 · 1 评论 -
【Unity】通过AnimatorController更改其中某个动画片断的速度
public AnimatorController AC; private float speed = 2f; void IfNeedChangeSpeed () { AC.layers [0].stateMachine.states [0].state.speed = 5; for (int i = 0; i < AC.layers [0].stateMachine.states.原创 2015-11-09 17:26:03 · 13275 阅读 · 7 评论 -
Unity两点之间模拟抛物线运动
using UnityEngine;using System.Collections;public class parabola : MonoBehaviour { public float ShotSpeed = 10; // 抛出的速度 private float time; // A-B的时间 public Transform pointA;原创 2016-11-29 09:42:35 · 10817 阅读 · 0 评论