기술 자료

Unity Engine

Unity Engine

EnumToInt<T>(T)

Gets the integer representation of an enum value without boxing.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public static int EnumToInt<T>(T enumValue) where T : struct, IConvertible

Parameters

enumValue

T
Enum value to convert.

Returns

Type

Description

intReturns the integer representation of the enum value.