EnumToInt<T>(T)
Gets the integer representation of an enum value without boxing.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
public static int EnumToInt<T>(T enumValue) where T : struct, IConvertible
Parameters
Returns
Type | Description |
|---|---|
| int | Returns the integer representation of the enum value. |