Search Issue Tracker
Fixed in 2019.1.X
Fixed in 2018.4.X
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.3.2f1
2019.1.0a1
2019.2.0a1
Issue ID
1118631
Regression
No
System.Numerics Vector sizes are all 16 bytes instead of 8, 12 and 16 bytes
How to reproduce:
1. Open the attached "UnityBugSystemNumericsVector2Size.zip" project
2. Open the "Bug" scene
3. Enter Play mode
Expected results: Console prints out the correct values for the sizes of System.Numerics.Vector2 and System.Numerics.Vector3(8 and 12)
Actual results: Console prints out 16 twice
Reproducible with: 2017.4.18f1, 2018.3.3f1, 2019.1.0a14, 2019.2.0a2
---------------------------------------------------------------------------------------
Fixed in: 2019.1.0b5, 2019.2.0a5
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- A "Could not generate preview image" error is shown in the Console window when viewing a ".androidlib" asset
- Call stack hyperlinks become unclickable when scrolled down in the Console window
- Package files do not get checked out in Perforce when the project includes a provider callback
- VFX throw errors upon importing it
- "NullReferenceException" error is thrown when swapping between built-in and URP depending on assets loaded out of asset bundles
dfields-msft
Sep 12, 2019 00:08
I'm hitting this as well, and it's causing problems for some code that's trying to interop with a native plugin. The plugin properly fills a System.Numerics.Vector3[] buffer using a stride of 12 bytes, but the script code running in 2018.4.6 accesses it with a stride of 16 bytes, which obviously doesn't work as intended. When can this be patched in 2018.4?
PS- We've been discussing this over on an unrelated GitHub issue here:
https://github.com/microsoft/MixedRealityToolkit-Unity/issues/3939#issuecomment-530611503