Closed Chensem closed 1 year ago
function getEnumName(value: number, klass: Il2Cpp.Class): string {
const System_Enum = Il2Cpp.Image.corlib.class('System.Enum');
const GetEnumObject = System_Enum.method<Il2Cpp.Object>('ToObject');
return GetEnumObject.overload('System.Type', 'System.Int32').invoke(klass.type.object, value).method<Il2Cpp.String>('ToString').invoke().content as string;
}
thanks try it successfully
example i get int 2 , i want to get
Argument
with string , how to write the code ?