Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetObjectReferenceCurves(AnimationClip, EditorCurveBinding[], ObjectReferenceKeyframe[][])

Adds, modifies, or removes object references curve in an animation clip.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void SetObjectReferenceCurves(AnimationClip clip, EditorCurveBinding[] bindings, ObjectReferenceKeyframe[][] keyframes)

Parameters

The animation clip to modify.

The bindings that define the paths and the properties of each curve.

keyframes

ObjectReferenceKeyframe[][]
Array of Object reference arrays, one per binding.

Remarks

This method is equivalent to calling AnimationUtility.SetObjectReferenceCurve for each individual curve. This method also applies relevant post-processing operations only once. This method modifies object reference curves. For float curves, see AnimationUtility.SetEditorCurves.