Quantcast
Viewing all articles
Browse latest Browse all 10823

Unity 5.3.1p2 IL2CPP fixing #752153 broke my code

I'm using native plugins that use [In, Out] on an array of floats. Everything has been working fine for months, until 5.3.1p2. Now, my code is breaking when I try to PInvoke the following function:

Code (csharp):
  1.  
  2. [DllImport(libName, CallingConvention=CallingConvention.Cdecl)]
  3. private static extern int Native_GetData([In, Out] float[] output, int max_count);
  4.  
  5. // ....
  6.  
  7. float[] data = new float[10];
  8. Native_GetData(data, 10); // error, see below
  9.  
at runtime, I land here:

Code (csharp):
  1.  
  2. inline void...
Unity 5.3.1p2 IL2CPP fixing #752153 broke my code

Viewing all articles
Browse latest Browse all 10823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>