[fix] 为了解决与Xlua的兼容问题,扫描MonoPInvokeCallbackAttribute时只比较类名而不比较全名,因为Xlua使用自定义的 Xlua.MonoPInvokeCallbackAttribute 特性
parent
82499dfe32
commit
339b9f9fde
|
@ -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;
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue