At the end of the example code in this page Unity - Scripting API: Mesh.bindposes.
// Set keys of a curve.
curve.keys = new Keyframe { new Keyframe(0, 0, 0, 0), new Keyframe(1, 3, 0, 0), new Keyframe(2, 0.0F, 0, 0) };
// Using curve to change position.z
// It works well.
clip.SetCurve(“Lower”, typeof(Transform), “m_LocalPosition.z”, curve);
Then I change the code:
// It works but the rotation.z at key(2) is 180 rather than 3
clip.SetCurve(“Lower”, typeof(Transform), “m_LocalRotation.z”, curve);
What’s the problem?
Thanks!