Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

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

Animator.GetFloat

Switch to Manual
public float GetFloat(string name);
public float GetFloat(int id);

Parameters

name The parameter name.
id The parameter ID.

Returns

float The value of the parameter.

Description

Returns the value of the given float parameter.

If the float parameter you specify doesn't exist, the float returns as 0.

Did you find this page useful? Please give it a rating: