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
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
- Crash on invalid_parameter_internal when starting Standalone Profiler
Resolution Note (fix version 2019.3):
Fixed in 2019.3.0a6, 2019.2.0b6