기술 자료

Unity Engine

Unity Engine

GetFloat

Returns the value of the given float parameter.
읽는 시간 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

name

The parameter name.

Returns

Type

Description

floatThe 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

id

The parameter ID.

Returns

Type

Description

floatThe value of the parameter.

Remarks

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