Search Issue Tracker
Fixed in 2021.3.30f1
Fixed in 2021.3.X, 2022.3.X, 2023.1.X, 2023.2.X, 2023.2.0a22
Votes
0
Found in
2021.3.22f1
2022.2.14f1
2023.1.0b12
2023.2.0a10
Issue ID
UUM-33871
Regression
No
The Player build fails when calling both Type.GetMethod and calling any managed function pointer in the same function with Minimal and Low Stripping Level
Reproduction steps:
1. Open the attached project “LinkerPlayerFail”
2. Go to Edit > Project Settings > Player and make sure that “Managed Stripping Level is set to Minimal or Low
3. Build the project via File > Build Settings > Build
Expected result: The Player is built
Actual result: Player build failed
Reproducible with: 2021.3.22f1, 2022.2.14f1, 2023.1.0b12, 2023.2.0a10
Couldn't test with: 2020.3.47f1 (Assets\MyClass.cs(24,31): error CS1547: Keyword 'void' cannot be used in this context)
Reproducible on: Windows 10
Notes:
Built successfully when changing “Managed Stripping Level” to Medium or High
Built successfully when commenting out any of the marked code lines in “Assets/MyClass.cs”
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Package signature validation unexpectedly return an invalid signature status if the validation check is done after the code signing certificate validaty range has passed
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
Resolution Note (fix version 2023.2):
Fixed in our fork of the Mono linker