xLua icon indicating copy to clipboard operation
xLua copied to clipboard

IL2CPP Managed Stripping Level: Medium xlua报错

Open zhihexiao opened this issue 4 years ago • 3 comments

2021-06-08 19:22:10,763[ Error] [06/08 19:22:10.762]xLua exception : c# exception:System.NullReferenceException: Object reference not set to an instance of an object. at XLua.ObjectTranslator.getDelegate (XLua.DelegateBridgeBase bridge, System.Type delegateType) [0x00000] in <00000000000000000000000000000000>:0 at XLua.ObjectTranslator.CreateDelegateBridge (System.IntPtr L, System.Type delegateType, System.Int32 idx) [0x00000] in <00000000000000000000000000000000>:0 at XLua.ObjectTranslator.GetDelegate[T] (System.IntPtr L, System.Int32 index) [0x00000] in <00000000000000000000000000000000>:0 at XLua.CSObjectWrap.ResourceAssetLoaderWrap.m_LoadMaterialAsync_xlua_st (System.IntPtr L) [0x00000] in <00000000000000000000000000000000>:0

请问xlua引擎代码是不是不能设置剪裁级别为中级?

zhihexiao avatar Jun 08 '21 11:06 zhihexiao

报错的那函数用了些反射的东西。剪裁对反射可能会有影响

chexiongsheng avatar Jun 09 '21 02:06 chexiongsheng

感谢回复~ 就是说xlua下il2cpp剪裁等级只能Low,对吗

zhihexiao avatar Jun 09 '21 13:06 zhihexiao

每个unity版本对low,medium这些都有不同的定义,没法一个个试。你试了可以就可以,不可以就不可以。

chexiongsheng avatar Jun 11 '21 09:06 chexiongsheng