Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

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

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.