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
- "Create Empty Child" Option Creates Root Object When No Parent Is Selected
- Freeze/Crash when entering Play Mode in a specific project
- Lack of documentation regarding VFX Ray Tracing support
- Shader properties do not appear on the GameObject when switching ShaderGraphs during runtime in the Player
- Multiple '-' symbols are allowed to appear in a row when inputting '.' into a non-decimal numeric field
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