Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Game working in editor and with Unity Remote 5, but not after compiling on Xiaomi

Discussion in 'Android' started by AldevtoStudio, Sep 1, 2020.

  1. AldevtoStudio

    AldevtoStudio

    Joined:
    Mar 25, 2020
    Posts:
    5
    Hi,
    I post this here because i saw that the Xiaomi forum is a little abandoned.
    I made a game for Android and after compiling, it works on all mobiles except on xiaomi. I saw that the problems is related with that i have two cameras on my game, one for the scene and other for UI.
    My first thought was that it was a problem with cameras, so i checked how the are configured and its all nice setup. Then i tried to disable the UI camera and voila, now i can see the scene.
    The game works in the editor and with Unity Remote 5 connected to my Xiaomi device, but not after compiling. There is two screenshots, the first is how the game should be, the second is how is badly working on my Xiaomi device (and yes, i tried to install the apk in another Xiaomi device and its the same error).

    WhatsApp Image 2020-09-01 at 23.27.25.jpeg

    WhatsApp Image 2020-09-01 at 23.27.59.jpeg
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,643
  3. AldevtoStudio

    AldevtoStudio

    Joined:
    Mar 25, 2020
    Posts:
    5
    I finally found another way, instead of using 2 cameras now i only use one. But its an important bug for those who want to use more than one camera. If you guys need i can help to find the issue.