Search Issue Tracker

By Design

Votes

0

Found in

2018.4.0f1

2019.2.0a1

2019.2.3f1

2019.3.0a1

2020.1.0a1

Issue ID

1190542

Regression

No

[UWP] ContentDialog box doesn't disables apps interactivity

Steps to reproduce:
1. Download 1190542_repro.zip and open "SampleScene" scene
2. Build a UWP app
3. Click on ContentDialog button
4. Click on a different button
5. Hover over cubes

Expected results: App isn't interactive apart from the Content Dialog box
Actual results: The app is still interactive.

Reproduced with: 2020.1.0a8, 2019.3.0b7, 2019.2.9f1, 2018.4.11f1

  1. Response avatar

    Resolution Note:

    When using XAML in a UWP app, change the Input Source under Player Settings -> Publisher Settings -> Misc to either "Independent Input Source" or "Swap Chain Panel" in order for Unity to better interact with XAML controls.

    Using either one of these settings will consume mouse and touch events preventing them from triggering UI or GameObject interactions. For details on these settings (and which to use) reference: https://docs.unity3d.com/ScriptReference/PlayerSettings.WSAInputSource.html. Note that Keyboard input is not handled in this way and is always generated from CoreWindow; it may still trigger "OnKey" interactions in Unity.

    Alternatively, you can call AppCallbacks::UnitySetInput from your native XAML code (e.g. MainPage.cpp) to enable/disable input from reaching Unity, depending on your XAML use-cases. For more information on AppCallbacks class, see: https://docs.unity3d.com/2019.2/Documentation/Manual/windowsstore-appcallbacks.html

Comments (20)

  1. 51d22796b3855902e46739811ab79ac3?d=mm

    EvaAnne

    May 25, 2020 12:49

    very good article. https://www.moreinfoz.com/

  2. 51d22796b3855902e46739811ab79ac3?d=mm

    EvaAnne

    May 25, 2020 12:48

    thank you very much
    https://www.asideeffects.com/

  3. 51d22796b3855902e46739811ab79ac3?d=mm

    EvaAnne

    May 25, 2020 12:48

  4. 51d22796b3855902e46739811ab79ac3?d=mm

    EvaAnne

    May 25, 2020 12:48

  5. D83a832bca4aacdd8b3b4fac80cdd3e4?d=mm

    salindaad3

    May 19, 2020 11:35

  6. 2699784919bb291030657f8c5c6bbcdf?d=mm

    sitem641

    May 16, 2020 04:13

    Thank you so much for the information. https://www.bestelife.com

  7. 77d8d083516e7213a1672cad7b761c20?d=mm

    blackseedoilweightloss

    May 14, 2020 15:20

    Thank you so much for the information - https://www.blackseedoilweightloss.com/

  8. 448c1e9ecdd3da33ba86cff34a40842f?d=mm

    slbuddy

    Mar 31, 2020 11:16

    Thank you so much for the information. Pubg little apk can download here. https://pubgliteapk.com/

  9. 448c1e9ecdd3da33ba86cff34a40842f?d=mm

    slbuddy

    Mar 31, 2020 11:14

    Thank you so much for the information. Here can download wp themes free. https://24freedownload.com/

  10. 448c1e9ecdd3da33ba86cff34a40842f?d=mm

    slbuddy

    Mar 31, 2020 11:11

    Thank you so much for the information. https://foodwithiron.com/

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.