From cca4d038c4a3ac5227680600bee5013582b2708e Mon Sep 17 00:00:00 2001 From: zentiali Date: Sat, 2 Nov 2024 21:58:38 +0800 Subject: [PATCH] fix AddMethod --- .../upm/Editor/Resources/puerts/xil2cpp/Puerts_il2cpp.cpp.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unity/Assets/core/upm/Editor/Resources/puerts/xil2cpp/Puerts_il2cpp.cpp.txt b/unity/Assets/core/upm/Editor/Resources/puerts/xil2cpp/Puerts_il2cpp.cpp.txt index e625ac68d2..2efa7e51b5 100644 --- a/unity/Assets/core/upm/Editor/Resources/puerts/xil2cpp/Puerts_il2cpp.cpp.txt +++ b/unity/Assets/core/upm/Editor/Resources/puerts/xil2cpp/Puerts_il2cpp.cpp.txt @@ -2124,7 +2124,7 @@ puerts::WrapData* AddMethod(puerts::JsClassInfo* classInfo, const char* signatur for(int i = 0; i < classInfo->Methods.size(); ++i) { - if (classInfo->Methods[i].IsStatic == isStatic && classInfo->Methods[i].IsGetter == isGetter && classInfo->Methods[i].IsGetter == isGetter && classInfo->Methods[i].Name == name) + if (classInfo->Methods[i].IsStatic == isStatic && classInfo->Methods[i].IsGetter == isGetter && classInfo->Methods[i].IsSetter == isSetter && classInfo->Methods[i].Name == name) { if (isGetter || isSetter) // no overload for getter or setter {