Messing around with Unity mono hooks I ran into an issue calling
[MethodImpl(MethodImplOptions.InternalCall)] declared methods.
If you haven’t encountered these before, they are references to unmanaged native (read C/C++ binary) methods.
Similar to how you might use one like this with “DLLImport”:
[DllImport("kernel32.dll", CharSet = CharSet.Auto)] public static extern void OutputDebugString(string message);Read More