This version of Unity is unsupported.

UnsafeUtility.EnumEquals

Declaration

public static bool EnumEquals(T lhs, T rhs);

Parameters

lhs The first enum to compare.
rhs The second enum to compare.

Returns

bool True if equal, otherwise false.

Description

Determines whether the specified enums are equal without boxing.