Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

AnimationUtility.GetFloatValue

Switch to Manual
public static function GetFloatValue(root: GameObject, relativePath: string, type: Type, propertyName: string, out data: float): bool;

Parameters

Description

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

Useful for recording keyframes.