Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.4
2020.3
2020.3.9f1
2021.1
2021.2
2022.1
Issue ID
1358586
Regression
No
[IL2CPP] DownloadHandlerScript overrides not invoked when Managed Stripping Level is set to High
How to reproduce:
1. Open the attached project's "case_1358586-Project.zip" Scene labeled "SampleScene"
2. Enter the Play Mode
3. View the Console Window
4. Make sure that the overridden ReceiveData method is called
5. Make an IL2CPP build (either changing the scripting backend to IL2CPP or platform to WebGL)
6. Open the build
7. Check if a message is logged from 'ReceiveData'
Expected result: Overridden DownloadHandlerScript methods are called when Managed Stripping Level is set to High
Actual result: Overridden DownloadHandlerScript methods are not called when Managed Stripping Level is set to High
Reproducible with: 2019.4.30f1, 2020.3.17f1, 2021.1.19f1, 2021.2.0b9, 2022.1.0a5
Workaround:
- Marking the required method/class with 'UnityEngine.Scripting.Preserve' attribute, to ensure it's not stripped
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2022.1.X):
It is possible to work around this issue by avoiding the "High" stripping level. We don't plan to correct this specific issue.