AnimationUtility.SetKeyLeftTangentMode

hi i make

   foreach (var binding in AnimationUtility.GetObjectReferenceCurveBindings (clip)) {

            AnimationCurve curve = AnimationUtility.GetEditorCurve (clip,binding);

            for (int i = 0; i < curve.keys.Length; i++) {

                AnimationUtility.SetKeyLeftTangentMode(curve,i,AnimationUtility.TangentMode.Auto);
                AnimationUtility.SetKeyRightTangentMode(curve,i,AnimationUtility.TangentMode.Auto);

            }
    }

and look do nothink’s ? why ! please help thank’s
on u5.5

You need to call SetEditorCurve after.
The curves are copies

Thank’s i will check that’s

Hi,
I suppose the use of the AnimationUtility functions are only usuable in the Editor, right ?