
Unity
shaynerain
欢迎交流shaynerain@163邮箱
展开
-
Unity获取动画的角度值
首先需要明确几个概念,一个动画其实是n个物体的m个属性值的变换,即n*m个波形,获取里面的值需要每个波形去遍历,使用API获取波形第i帧的值,如下:AnimationCurve animationCurve = AnimationUtility.GetEditorCurve(AnimationClip, item.CurveBinding);List<float> v = new List<float>();for (float i=0; i< Animation原创 2020-06-08 22:04:56 · 469 阅读 · 0 评论 -
Unity调用Input.GetAxis出错
You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings编辑->项目设置->Player->其他设置->...原创 2020-03-25 00:19:02 · 6423 阅读 · 0 评论