Search Issue Tracker

Fixed in 2020.2

Fix In Review for 2018.4, 2019.3

Fixed in 2020.1

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

IL2CPP

-

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)

  1. Response avatar

    Resolution Note (fix version 2020.2):

    Fixed in 2020.2.0a3

  2. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed in 2020.1.0b2

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.