Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
1
Found in
2021.2
2021.2.0b6
2022.1
Issue ID
1356753
Regression
No
IL2CPP build fails when using an interface with static fields in a script
How to reproduce:
1. Open the attached Unity project ("BugRepro.zip")
2. Build the project
Expected result: build succeeds, no build errors present in the Console
Actual result: build fails, build errors are present in the Console
Reproducible with: 2021.2.0b7, 2022.1.0a5
Could not test with: 2019.4.29f1 (Interfaces cannot contain fields, interface members cannot have a definition), 2020.3.15f2, 2021.1.16f1 (Default interface implementation not supported)
Note:
- Not reproducible with Mono Scripting Backend
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
- Editor crashes when debugging a for loop
- Crash on UnityPlayer!profiling::ProfilerManager::DisposeProfilerRecorder+0xa when Player gets relaunched and exited after running for a long amount of time
- [Input system] When releasing one touch and pressing a second touch during a single frame, the second touch is not translated into UI event line OnPointerDown by the InputSystemUIInputModule
- URP Samples - multiple "Attempting to resolve render surface" and other errors appear when setting Quality pipeline asset
- OnDemandRendering.willCurrentFrameRender returns incorrect values in the Player when UnityEngine.Rendering.OnDemandRendering.renderFrameInterval is greater than 1
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a10
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0b13