[fix] 为了解决与Xlua的兼容问题,扫描MonoPInvokeCallbackAttribute时只比较类名而不比较全名,因为Xlua使用自定义的 Xlua.MonoPInvokeCallbackAttribute 特性

main
walon 2022-10-18 13:30:42 +08:00
parent 82499dfe32
commit 339b9f9fde
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ namespace HybridCLR.Editor.ReversePInvokeWrap
{ {
continue; 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) if (wa == null)
{ {
continue; continue;

View File

@ -1,6 +1,6 @@
{ {
"name": "com.focus-creative-games.hybridclr_unity", "name": "com.focus-creative-games.hybridclr_unity",
"version": "0.5.1", "version": "0.5.2",
"displayName": "HybridCLR", "displayName": "HybridCLR",
"description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR", "description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR",
"category": "Runtime", "category": "Runtime",