Category : unityscript

I’m trying to send a native c++ short array to c# side via masrhalling: delegate void OnMoreDataInter( [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] short[] moreData, int moreDataSize); This code works perfectly in Windows and Android. However, the returned array size is always 1 on C# side for iOS. I have applied the approach in the topic: ..

Read more

I’m trying to send a native c++ short array to c# side via masrhalling: delegate void OnMoreDataInter( [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] short[] moreData, int moreDataSize); This code works perfectly in Windows and Android. However, the returned array size is always 1 on C# side for iOS. I have applied the approach in the topic: ..

Read more