This version of Unity is unsupported.

UnsafeUtility.EnumToInt

Declaration

public static int EnumToInt(T enumValue);

Parameters

enumValue Enum value to convert.

Returns

int Returns the integer representation of the enum value.

Description

Return integer representation of enum value without boxing.