HalfToFloat(ushort)
Convert a half precision float to a 32-bit floating point value.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static float HalfToFloat(ushort val)
Parameters
The half precision value to convert.
Returns
Type | Description |
|---|---|
| float | The decoded 32-bit float. |
Remarks
Additional Resources: Mathf.FloatToHalf.