Unity - NatNetLib IL2CPP Exception

NatNet, VRPN, TrackD, and Plugins
Post Reply
Loogix
Posts: 2
Joined: Tue Apr 26, 2022 6:51 am

Unity - NatNetLib IL2CPP Exception

Post 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
Archtica
Posts: 2
Joined: Thu Nov 17, 2022 2:44 am

Re: Unity - NatNetLib IL2CPP Exception

Post by Archtica »

Hi Loogix
Did you ever resolve this issue? I'm facing the same problem.
Regards Thomas
Loogix
Posts: 2
Joined: Tue Apr 26, 2022 6:51 am

Re: Unity - NatNetLib IL2CPP Exception

Post 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
Post Reply