Search Issue Tracker
Fixed in 2019.3.X
Fixed in 2018.4.X, 2019.1.X, 2019.2.X
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2019.1.0a1
2019.1.0f1
2019.2.0a1
2019.3.0a1
Issue ID
1146982
Regression
No
[UWP] [IL2CPP] UnityEngine.WSA.Application.windowActivated is removed by IL2CPP Managed bytecode stripping
Steps to reproduce:
1. Download 1146982_repro.zip
2. Build project for UWP
3. Build Visual Studios solution
Expected results: UnityEngine.WSA.Application.windowActivated event is called
Actual results: UnityEngine.WSA.Application.windowActivated event never fires. Is removed by IL2CPP Managed bytecode stripping
Reproduced with: 2019.3.0a1, 2019.2.0a12, 2019.1.0f2, 2018.3.13f1, 2017.4.26f1
Workaround:
- Add link.xml file to the project
<linker>
<assembly fullname="UnityEngine.CoreModule">
<type fullname="UnityEngine.WSA.Application" preserve="nothing">
<method name="InvokeWindowActivatedEvent"/>
</type>
</assembly>
</linker>
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 (fix version 2019.3):
Fixed in 2019.3.0a6, 2019.2.0b6