Skip to content

Screen layout bugs when UnityWidget starts #589

Closed
@ernonemacher

Description

@ernonemacher

Describe the bug
Screen layout bugs when UnityWidget starts, the borders of the app start to behave like a standard Unity app. Closing the UnityWidget doesn't revert this behavior, changing the AppBar of the home screen, but would affect every screen of the app.

To Reproduce
Steps to reproduce the behavior:

  1. Run the Demo app
  2. Click on anything that opens a UnityWidget
  3. Click on the back arrow going back to the HomeScreen

(In order to run with this versions I did the steps specified in this issue)

Expected behavior
The screen stays with the flutter pattern of the AppBar even when the UnityWidget is active. Or at least when after it closes.

Screenshots
1 2 3

Unity:

  • OS: macOS BigSur 11.5.2
  • Version: 2020.3.20f1

Smartphone:

  • Device: Redmi Note 8
  • OS: Android
  • Version Android version: 10, MIUI version: 12.0.4

Additional context
If this is considered the standard behavior, consider marking the issue with FeatureRequest instead of a bug.

Notice when I said "AppBar behavior or borders", I mean the Screen layout and behavior as a whole. Most noticeable in the AppBar.

This might be related to some updates in the Resolution and Presentation config on Unity. I tried using FullscreenWindowed and Windowed, with different variants of Windown Size, Resizeble Windowm etc. The only noticeable changes are marking the Hide Navigation Bar and Render outside safe area that change the behavior of the Screen, but they work just as before, changing the AppBar when UnityWidget is opened.
Screen Shot 2022-05-19 at 09 24 36

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions