IL2cpp NotSupportedException: IL2CPP does not support marshaling delegates that point to instance me

将要传递到c++的方法加上AOT.MonoPInvokeCallback即可


        [AOT.MonoPInvokeCallback(typeof(TestCallBack))]
        static void Test(uint a, uint b)
        {
    
             
        }

猜你喜欢

转载自blog.csdn.net/qq_25670983/article/details/126159321