Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.4.X, 2021.1.X
Votes
12
Found in
2018.4
2019.4.13f1
2021.1
Issue ID
1288796
Regression
No
ArgumentException is thrown when trying to convert enum to Int32
How to reproduce:
1. Open the user's attached project("ErrorType.zip")
2. Enter Play mode
Expected results: the enum is converted to int and no exception is thrown
Actual results: "ArgumentException: method return type is incompatible" is thrown
Reproducible with: 2018.4.29f1, 2019.4.15f1, 2020.1.14f1, 2020.2.0b12, 2021.1.0a7
Note: Does not reproduce when done with vanilla C#
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
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Resolution Note (fix version 2020.2):
Fixed in: 2021.2.0a1.96 and newer
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.0b4 and newer
Resolution Note (fix version 2020.2):
Fixed in: Unity 2020.2.5f1 and up
Resolution Note (fix version 2019.4):
Fixed in 2019.4.20f1 and up