This version of Unity is unsupported.

AnimationUtility.GetFloatValue

Declaration

public static bool GetFloatValue(GameObject root, EditorCurveBinding binding, out float data);

Description

Samples a curve on the GameObject you pass in and retrieves the current float value.

Use this method when recording keyframes.


Obsolete This overload is deprecated. Use the one with EditorCurveBinding instead.

Declaration

public static bool GetFloatValue(GameObject root, string relativePath, Type type, string propertyName, out float data);

Description

Samples a curve on the GameObject you pass in and retrieves the current float value.

Use this method when recording keyframes.