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

[BUG]: Enormous blue border after build in 2D game

Discussion in '2D' started by galvanchi, Jan 10, 2017.

  1. galvanchi

    galvanchi

    Joined:
    Mar 5, 2015
    Posts:
    7
    Hi,

    I have a bug and not sure how it's happen and how to resolve it, please can anybody help me?

    What I have: 2D game with scrollable rect view which is 2400*2400 pixels, inside it have a 2D sprites and inside the content my UI elements. When I'm playing the game in the editor everything is ok, but when I try to build the game, then I have enormous blue border from the right and top.

    This blue border's width from the right is equal to current game width resolution, for example if I'm playing with a resolution 1366*768, then the border's width from the right is equal to 1366, if use 1024*768, then 1024, etc. The same problem with top border, but in top they height is equal to game resolution height, for example 768.

    I have no idea why it's working in editor (I'm has change game resolution in editor and everything is ok), but don't work after build.

    Please can anybody help me?
    I have a latest Unity version.
     
  2. mikael_juhala

    mikael_juhala

    Joined:
    Mar 9, 2015
    Posts:
    247
    Could you post a screenshot of the border?
     
  3. mohanadGadamse

    mohanadGadamse

    Joined:
    Jun 13, 2016
    Posts:
    10
    check your graphic setting and make sure that all the 6 pre-loaded shader is there in the Always included shaders Array .
    you can find the graphic setting from the edit>>project Setting >>Graphic setting
    if some of them are missing then you need to add it. if you don't know the name of the shaders ,then open any other project or make new one , then go to the graphic setting .
     
  4. galvanchi

    galvanchi

    Joined:
    Mar 5, 2015
    Posts:
    7
    Thanks for help. Fixed with following: recreate the scrollable rect control and everything starts work fine.