UnsafeUtility.EnumToInt

public static int EnumToInt(T enumValue);

Parameters

enumValueEnum value to convert.

Returns

int Returns the integer representation of the enum value.

Description 描述

Return integer representation of enum value without boxing.