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>

  1. Resolution Note (fix version 2019.3):

    Fixed in 2019.3.0a6, 2019.2.0b6

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.