Unity - A计划(一年有效期) 扫二维码继续学习 二维码时效为半小时

(61评价)
价格: 2150.00元
Unity中的动画系统和Timeline(Unity2017) 播放跳跃动画出现问题
有翅膀所以努力奔跑发起了问答2018-01-16
1
回复
2481
浏览

问题描述:将跳跃动画播放时匹配手部动作,但是添加代码以后不能跳跃

单独:if (PlayerAnimator.GetFloat(speedZID) > 3)

和 if (PlayerAnimator.GetCurrentAnimatorStateInfo(0).IsName("Vault"))
        {
            PlayerAnimator.MatchTarget(matchTarget, Quaternion.identity, AvatarTarget.LeftHand, new MatchTargetWeightMask(Vector3.one, 0), 0.32f, 0.4f);
        }注销的时候能播放。

 

添加&& PlayerAnimator.GetCurrentAnimatorStateInfo(0).IsName("Locomotion")

和取消上面判断的时候动画不能播放。

所有回复
  • 老师_Sandy 2018-01-17

    你好,通过问题的描述没有办法找到问题所在,可以把代码的截图也上传上来,并注明可以播放和不可以播放的情况。

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
发表回复
你还没有登录,请先 登录或 注册!