r3
r3
自我总结的几点:
1.关于摄像头直接gua'j
iK动画 反向动力学
骨骼遮罩 avatamask 用于对骨骼遮罩,可以遮盖部分骨骼,使他不受动画影响
人形动画
亲测5.6没有Timeline功能
2018.2.8这个版本的legacy可以添加Animator,也有动作
Void Update()
{
Debugl.Log("Hello World");
}
animator 动画状态级
animation 动画
legacy
额
Has Exit Time
Pig里G H 动画机导入
.obj格式材料导入
随便创建一个游戏物体控MeshRend
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public class Player : MonoBehaviour
{
private Animator anim;
private int speedID = Animator.StringToHash("Speed");
private int isSpeedID = Animator.StringToHash("isSpeedup");
private int HorizontalID = Animator.StringToHash("Horizontal");
private int speedRotateID = Animator.StringToHash("SpeedRotate");
private int speedZID = Animator.StringToHash("Speedz");
// Use this for initialization
void Start()
{
anim = GetComponent<Animator>();
}
// Update is called once per frame
void Update()
{
anim.SetFloat(speedID, Input.GetAxis("Vertical")*4.1f);
anim.SetFloat(speedZID,Input.GetAxis("Vertical")*4.1f);
anim.SetFloat(speedRotateID,Input.GetAxis("Horizontal")*126);
//anim.SetFloat(HorizontalID,Input.GetAxis("Horizontal"));
//if (Input.GetKeyDown(KeyCode.LeftShift))
//{
// anim.SetBool(isSpeedID,true);
//}
//if (Input.GetKeyUp(KeyCode.LeftShift))
//{
// anim.SetBool(isSpeedID,false);
//}
}
}
此处可以直接在Transform组件上右键AddKey了。-现版本2018.2
可以修改最后一帧,把那条线移到最后一帧就好了