From 339b9f9fde176e3ff71ea94cca91c446116d8e79 Mon Sep 17 00:00:00 2001 From: walon Date: Tue, 18 Oct 2022 13:30:42 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=B8=BA=E4=BA=86=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E4=B8=8EXlua=E7=9A=84=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E6=89=AB=E6=8F=8FMonoPInvokeCallbackAttribute?= =?UTF-8?q?=E6=97=B6=E5=8F=AA=E6=AF=94=E8=BE=83=E7=B1=BB=E5=90=8D=E8=80=8C?= =?UTF-8?q?=E4=B8=8D=E6=AF=94=E8=BE=83=E5=85=A8=E5=90=8D=EF=BC=8C=E5=9B=A0?= =?UTF-8?q?=E4=B8=BAXlua=E4=BD=BF=E7=94=A8=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=9A=84=20Xlua.MonoPInvokeCallbackAttribute=20=E7=89=B9?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/ReversePInvokeWrap/Analyzer.cs | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Editor/ReversePInvokeWrap/Analyzer.cs b/Editor/ReversePInvokeWrap/Analyzer.cs index fe41062..1bda248 100644 --- a/Editor/ReversePInvokeWrap/Analyzer.cs +++ b/Editor/ReversePInvokeWrap/Analyzer.cs @@ -52,7 +52,7 @@ namespace HybridCLR.Editor.ReversePInvokeWrap { continue; } - CustomAttribute wa = method.CustomAttributes.FirstOrDefault(ca => ca.AttributeType.FullName == "AOT.MonoPInvokeCallbackAttribute"); + CustomAttribute wa = method.CustomAttributes.FirstOrDefault(ca => ca.AttributeType.Name == "MonoPInvokeCallbackAttribute"); if (wa == null) { continue; diff --git a/package.json b/package.json index a9ba008..8e10f98 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.focus-creative-games.hybridclr_unity", - "version": "0.5.1", + "version": "0.5.2", "displayName": "HybridCLR", "description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR", "category": "Runtime",