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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Error Android UI Multiple renderings of same object

Discussion in 'Editor & General Support' started by GodzillaDistortion, Jun 25, 2015.

  1. GodzillaDistortion

    GodzillaDistortion

    Joined:
    Jun 24, 2015
    Posts:
    2
    Hi, i'm making a QR + AR project, where i have 2 UI in 2 different scenes. In the editor the first UI looks fine and when i load the next scene, it also looks fine, but in my Android 4.4 Moto X XT1060 i keep getting this weird mess when i load the 2nd scene, while the first UI in the first scene looks totally fine:




    And this is the first scene in the project, running on my android:



    As you can see, the text "Favor de escanear QR" is perfectly fine.

    Here's my code i use when i load the 2nd scene:

    Code (CSharp):
    1. if(finished==1){
    2.             Destroy(GameObject.Find("Main Camera"));
    3.             Screen.orientation = ScreenOrientation.Portrait;
    4.             Handheld.ClearShaderCache();
    5.             Handheld.Vibrate();
    6.             Application.LoadLevel(nextscene);
    7.         }
    Due to some errors in the camera texture, i had to keep landscaped the first scene.

    Here are the settings for my canvas:
    editor.png editor2.png
     
  2. GodzillaDistortion

    GodzillaDistortion

    Joined:
    Jun 24, 2015
    Posts:
    2
    shameless bump