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
- SpeedTree does not move when using WindZone
- "Undeclared identifier 'LinearToSRGB'" error is thrown when creating a color variable with HDR color mode and assigning a Custom Render Texture target in Shader Graph
- Input System package is missing when creating a new HDRP project
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
Resolution Note (fix version 2019.3):
Fixed in 2019.3.0a6, 2019.2.0b6