Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2017.4.X, 2018.4.X, 2019.2.X, 2019.3.X
Votes
0
Found in
2018.4
2019.1.14f1
2019.2
2019.3
2020.1
Issue ID
1182074
Regression
No
[64bit IL2CPP] Marshal.OffsetOf returns incorrect offset
To reproduce:
1. Open the user's attached project using the EnvIronman VM (more information in Edit)
2. Open the SampleScene inside of the project
3. Go to Player Settings and set Scripting Backend to Mono
4. Build and run it
Expected: Notice the returned offset for "blendShapeParams" is 4, and all 6 values from the float array are shown:
blendShapeParams[0] = 10.23; blendShapeParams[1] = 11.33; blendShapeParams[2] = 22.23; blendShapeParams[3] = 33.23; blendShapeParams[4] = 44.33; blendShapeParams[5] = 55.33;
5. Close the player
6. Go to Player Settings again and set Scripting Backend to IL2CPP
7. Build and run it
Actual: Notice the returned offset for "blendShapeParams" is 8, and the printed float elements start from the second element, with the 6th one being 0 (uninitialized).
blendShapeParams[0] = 11.33; blendShapeParams[1] = 22.23; blendShapeParams[2] = 33.23; blendShapeParams[3] = 44.33; blendShapeParams[4] = 55.33; blendShapeParams[5] = 0;
Reproduced in 2018.3.0a1, 2019.1.14f1, 2020.1.0a2
Reproduced with Windows IL2CPP Player and UWP
Not reproduced with WebGL and Windows Mono
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Color picker does not show the correct color when selecting color on the moving object
- “Asset X has no meta file, but it's in an immutable folder. The asset will be ignored.” errors are thrown when importing package with files not listed in package.json's "files" property
- There is no way to adjust the HDR Paper White value of the Unity Editor's interface, making it difficult/uncomfortable for some developers to work on very dark/bright scenes in HDR
- Animator window has a dropdown button that throws “MissingReferenceException” error on a new project when the previous project had a GameObject with an animation
- Animator State name overflows outside the visual box when the State has a long name
Add comment