Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

UnsafeUtility.EnumToInt

Declaration

public static int EnumToInt(T enumValue);

Parameters

Description
enumValue Enum value to convert.

Returns

int Returns the integer representation of the enum value.

Description

Gets the integer representation of an enum value without boxing.