Search Issue Tracker
Fixed in 2020.3.47f1
Fixed in 2023.1.0b6
Votes
0
Found in
2020.3.45f1
2021.3.19f1
2022.2.8f1
2023.1.0b6
Issue ID
UUM-27976
Regression
No
IL2CPP doesn't follow Mono behaviour when using Type.Getmethod() to find the correct method
Reproduction steps:
1. Open the attached “IL2CPPBug” project
2. Enter the Play Mode
3. Observe the Console output
4. Build And Run the game (File > Build And Run)
5. Observe the Console logs in the bottom left corner of the Player
Expected result: The Console output is:
System.Int32[] -> TestMethod(parameter: System.Int32[]) found
System.Int32[][] -> TestMethod not found
System.Int32[] -> TestMethod(parameter: System.Int32[]) found
System.Int32[][] -> TestMethod not found
Actual result: The Console output is:
System.Int32[] -> TestMethod(parameter: System.Int32[]) found
System.Int32[][] -> TestMethod(parameter: System.Int32[]) found
System.Int32[] -> TestMethod(parameter: System.Int32[]) found
AmbiguousMatchException: Ambiguous match found.
Reproducible with: 2020.3.45f1, 2021.3.19f1, 2022.2.8f1, 2023.1.0b1, 2023.1.0b6
Not reproducible with: 2023.2.0a1, 2023.2.0a4
Reproducible on: Windows 10 (21H2)
Note: Using Mono Scripting Backend, the issue isn’t reproducible
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
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
- PolySpatial “Trying to set shader on a Material Variant.” error is printed in the console when entering Play Mode
- Error “Shader error in 'YSCloudCover': call to 'tex3D' is ambiguous at Assets/YSCloudCoverText.shader(606) (on d3d11)“ is present when compiling tex3D shader with DXC
- Placeholder asset is not loaded with Advertisement Legacy sample when using the latest version of the package
- Addressables content build fails but the Player build is successful when building a development build
Resolution Note (fix version 2020.3.47f1):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-23156
Resolution Note (fix version 2023.1.0b6):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-23156