我debug 原始角色的humanPose,在打印,数值都是变化的。
但是设置给目标角色时,目标角色却完全没有变化。
2个角色均设置了human,原角色有animator的循环动作。目标角色的Animator的controller设置为none和有controller但没有添加anim state的情况都测试,均是一样的结果。
另外我的u3d版本时5.52f1,我也查了最新的5.53发行说明,并没有提到这部分有bug...
谁能帮我看看这个问题呀,非常感谢。
[C#] 纯文本查看 复制代码 void Start () {
humanPose = new HumanPose();
sourceHandler = new HumanPoseHandler(source.GetComponent<Animator>().avatar, source.transform);
destinationHandler = new HumanPoseHandler(destinationAvatar, transform);
}
// Update is called once per frame
void Update () {
sourceHandler.GetHumanPose(ref humanPose);
destinationHandler.SetHumanPose(ref humanPose)
}
|