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
- Lighting Data asset is not created when baking multiple Scenes at the same time
- Performance issues when instantiating a recognizer under UnityEngine.Windows.Speech
- Build fails with "Exception: Unity.IL2CPP.Building.BuilderFailedException: Build failed with 0 successful nodes and 0 failed ones" when building the project for iOS
- [Android] .aab Build fails when using Asset Bundles
- Builds fail without a useful error message when building a project with invalid product name
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