기술 자료

Unity Engine

Unity Engine

HalfToFloat(ushort)

Convert a half precision float to a 32-bit floating point value.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static float HalfToFloat(ushort val)

Parameters

The half precision value to convert.

Returns

Type

Description

floatThe decoded 32-bit float.

Remarks

Additional Resources: Mathf.FloatToHalf.