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

Bug build just showing the background but the game works perfectly in editor

Discussion in '2D' started by jeremik100, Dec 16, 2022.

Thread Status:
Not open for further replies.
  1. jeremik100

    jeremik100

    Joined:
    Dec 16, 2022
    Posts:
    5
    upload_2022-12-16_23-35-53.png
    in editor it works fine

    upload_2022-12-16_23-35-57.png
    but the build just gives me this

    i have the log file if its needed but there is no error in there.
    i learned c# today but i used unity for modding so i know a thing or two.

    i would be really happy if someone could tell me whats wrong
     
  2. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    883
    Could it be that your intended scene is not in the build/not the starting scene?
    You can check the Build Settings to see which scene is being baked into the executable.
    You can also change the cameras background color, to more clearly see if you are loading the correct scene.
     
  3. jeremik100

    jeremik100

    Joined:
    Dec 16, 2022
    Posts:
    5
    thank you so much.
    i had only one scene so i didnt think its because i selected the wrong one but actually the "sample scene" was selected and because of that it looked like that.
    thanks again
     
    Ted_Wikman likes this.
  4. adityaparikh09

    adityaparikh09

    Joined:
    Aug 20, 2023
    Posts:
    11
    I have done both the things and it still is showing a blanck blue screen this is my first game please help
     
  5. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    883
    @adityaparikh09 since these issues are different from project to project, please create your own post with your specific information, so that users can try to help you out.
     
    MelvMay likes this.
Thread Status:
Not open for further replies.