This version of Unity is unsupported.

AnimationUtility.GetFloatValue

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

Description

Retrieves the current float value by sampling a curve value on a specific game object.

Useful for recording keyframes.