Quantcast
Channel: Questions in topic: "il2cpp"
Viewing all articles
Browse latest Browse all 598

[Resolved] IL2CPP Argument Out Of Range Exception When using "in" keyword

$
0
0
I'm getting the following error when performing an Android build in Unity Cloud Build: `[Unity] IL2CPP error for method 'System.Void VectorMath.Vector2D::.ctor(System.Single&,System.Single&)'` `il2cpp.exe didn't catch exception: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.` This error is referring to this code from my project: public Vector2D(in float x = 0.0f, in float y = 0.0f) { this.x = x; this.y = y; } I've been trying to make a faster Vector Math library for some more intensive operations. A lot of the methods take Advantage of the `in` keyword introduced in C# version 7.2 to improve performance. I'm currently using Unity 2018.4 LTS, and am using the following build settings: ![alt text][1] [1]: /storage/temp/166018-screen-shot-2020-08-21-at-100409-pm.png Is this an issue with how I'm using the `in` keyword, or is this an issue with compiler support? I read around and saw that the 2018.4 version should be able to support a .NET 4.6 Equivalent, which I've assumed up to this point means the .NET 4.x equivalent. Do I need to update to 2019.x to be able to use this? Source for C# compiler: https://docs.unity3d.com/2018.4/Documentation/Manual/CSharpCompiler.html

Viewing all articles
Browse latest Browse all 598

Trending Articles



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