GetFloat
Returns the value of the given float parameter.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AnimationModule
GetFloat(string)
Returns the value of the given float parameter.
public float GetFloat(string name)
Parameters
The parameter name.
Returns
Type | Description |
|---|---|
| float | The value of the parameter. |
Remarks
If the float parameter you specify doesn't exist, the float returns as 0.
GetFloat(int)
Returns the value of the given float parameter.
public float GetFloat(int id)
Parameters
The parameter ID.
Returns
Type | Description |
|---|---|
| float | The value of the parameter. |
Remarks
If the float parameter you specify doesn't exist, the float returns as 0.