From 82499dfe328f5b291f5182cdd1b67396f91a8ec2 Mon Sep 17 00:00:00 2001 From: walon Date: Tue, 18 Oct 2022 09:21:51 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=AF=B9=20?= =?UTF-8?q?MonoPInvokeCallback=E6=A0=87=E6=B3=A8=E7=9A=84=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E7=AD=BE=E5=90=8D=E5=81=9AOptimized=E5=8F=98=E6=8D=A2?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4=E4=B8=8ERuntime=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/ReversePInvokeWrap/Analyzer.cs | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Editor/ReversePInvokeWrap/Analyzer.cs b/Editor/ReversePInvokeWrap/Analyzer.cs index 9fb2a1b..fe41062 100644 --- a/Editor/ReversePInvokeWrap/Analyzer.cs +++ b/Editor/ReversePInvokeWrap/Analyzer.cs @@ -82,6 +82,7 @@ namespace HybridCLR.Editor.ReversePInvokeWrap ReturnInfo = new ReturnInfo { Type = typeCreator.CreateTypeInfo(method.Method.ReturnType)}, ParamInfos = method.Method.Parameters.Select(p => new ParamInfo { Type = typeCreator.CreateTypeInfo(p.Type)}).ToList(), }; + typeCreator.OptimizeMethod(desc); desc.Init(); if (!methodsBySig.TryGetValue(desc.Sig, out var arm)) { diff --git a/package.json b/package.json index 2baa87b..a9ba008 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.focus-creative-games.hybridclr_unity", - "version": "0.5.0", + "version": "0.5.1", "displayName": "HybridCLR", "description": "Unity package for HybridCLR. It includes editor and runtime scripts and assets for HybridCLR", "category": "Runtime",