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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答