Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.3.X, 2020.1.X
Votes
0
Found in
2018.4
2019.2
2019.3
2019.3.0b12
2020.1
Issue ID
1212919
Regression
No
IL2CPP incorrectly boxes values when using generic virtual methods on structs
Steps to reproduce:
1. Open the attached project (case_1212919.zip)
2. Attach "TestScript" to any GameObject
3. Under Edit -> Project Settings -> Player -> Other Settings, set Scripting Backend to IL2CPP
4. Build as Standalone with "Development Build " checked
5. Run the built executable
Expected result: Numbers 1 through 10 are constantly logged to the Console
Actual result: 0 is constantly logged to the Console
Reproduced in: 2018.4.16f1, 2019.2.19f1, 2019.3.0f5, 2020.1.0a21
Cannot test with: 2017.4.36f1 (IL2CPP not available)
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
- Sprite Preview is broken when the Sprite is too tall or too wide
- Objects are invisible in Scene view when using Wireframe Shading Mode
- The property of a component becomes read-only when it is bound to "PropertyStreamHandle"
- Physics.Raycast does not work when used on the whole model
- Shader Graph changes the Position of Prefab instances in Play mode
Resolution Note (fix version 2020.2):
Fixed in 2020.2.0a3
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0b2
Resolution Note (fix version 2019.3):
Fixed in 2019.3.13f1