Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimationUtility.GetObjectReferenceCurveBindings

Switch to Manual
public static function GetObjectReferenceCurveBindings(clip: AnimationClip): EditorCurveBinding[];

Parameters

Description

Returns all the object reference curve bindings currently stored in the clip.

Answers the question: "Which object reference properties are animated by the clip?".

Unity has two types of animation: Float and object reference. Float curve is a classic curve that animates float property over time. Object reference "curve" is a construct that animates object reference property over time.

This method returns only the object reference bindings. See AnimationUtility.GetObjectReferenceCurveBindings for float curves.

no example available in JavaScript