使用Update()导致LateUpdate()

时间:2015-11-19 10:02:22

标签: unity3d

我理解LateUpdate()我已经有了Update()的结果,所以我可以对这些结果做进一步的更改,然后渲染/动画将反映这些最新的变化,但为什么我不能打电话currentPose下面的targetModelLateUpdate()个变量?我如何参考他们的最新价值?

void Update()
{
    Vector3[] latestPositions;
    Quaternion[] latestOrientations;

    // Get the pose data in one call.
    if (Actors.getLatestPose(actorID, out latestPositions, out latestOrientations))
    {
        // Update both the pose and the model.
        updateActor(currentPose, latestPositions, latestOrientations);
        updateModel(currentPose, targetModel);
    }
}

void LateUpdate()
{
    updateMimicLimb();
}

0 个答案:

没有答案
相关问题