Search Issue Tracker
Fixed in 2021.1.X
Votes
0
Found in
2019.4
2020.3
2020.3.14f1
2021.1
Issue ID
1351399
Regression
No
[IL2CPP] PreserveAttribute doesn't prevent byte code stripping when the project is built with IL2CPP Scripting Backend
How to reproduce:
1. Open the project "case_1351399"
2. Open the Scene "SampleScene"
3. In the "Edit > Project Settings > Player" set the Scripting Backend to the IL2CPP
4. Build the project by clicking "File > Build And Run"
5. Observe the output in the built project
Expected result: the output is "OK Foo'1+Baz[System.Int32]"
Actual result: the output is an exception text
Reproducible with: 2019.4.29f1, 2020.3.15f2, 2021.1.0a9
Not reproducible with: 2021.1.0a10, 2021.1.17f1, 2021.2.0b7
Could not test: 2022.1.0a5 (project doesn't build)
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
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note (fix version 2021.1):
Fixed in the Unity 2021.1.0a10