Page 1 of 1

Unity - NatNetLib IL2CPP Exception

Posted: Tue Apr 26, 2022 7:08 am
by Loogix
Unity Plugin 1.4.0

Due to performance reasons, we would like to build our Unity Standalone Windows App with the IL2CPP Scripting backend.
The problem is that we can't, as the following Error pops up:

NotSupportedException: IL2CPP does not support marshaling delegates that point to instance methods to native code. The method we're attempting to marshal is: NaturalPoint.NatNetLib.NatNetClient::FrameReceivedNativeThunk

There maybe a solution in the Unity-Forum for the same Error but different asset: https://forum.unity.com/threads/il2cpp- ... st-6770581

Is this problem known and the Mono Scripting Backend the only solution?
Will this issue be solved?

Thanks and best regards,
Loogix

Re: Unity - NatNetLib IL2CPP Exception

Posted: Thu Nov 17, 2022 2:46 am
by Archtica
Hi Loogix
Did you ever resolve this issue? I'm facing the same problem.
Regards Thomas

Re: Unity - NatNetLib IL2CPP Exception

Posted: Mon Aug 21, 2023 1:24 am
by Loogix
Hello Thomas,
sorry for the late reply, but I have given up on anyone from the responsible parties taking care of the problem or replying.
We are currently living with the mono backend solution.

Have you found a solution?

Best regards