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

Building Issues

Discussion in '2D' started by Foodood, Mar 27, 2018.

  1. Foodood

    Foodood

    Joined:
    Apr 26, 2015
    Posts:
    7
    Hi whenever i run my game through unity everything seems fine. But whenever i build the project and run it everything seems like its out of bounds, or out of the camera. It would be a huge help if someone could tell me whats going on. Pictures:
    This is when run through unity: Screen Shot 2018-03-26 at 7.46.32 PM.png
    and this is when its built and runing Screen Shot 2018-03-26 at 7.47.03 PM.png
     
  2. vakabaka

    vakabaka

    Joined:
    Jul 21, 2014
    Posts:
    1,153
    Seems like different aspect ratio. Try to change editors "free aspect" (it's in game tab, left-up) to somethig what do you using in the game. I think 16/9. And you can lock build to this aspekt ratio too.
     
  3. EdKirby

    EdKirby

    Joined:
    Nov 15, 2013
    Posts:
    43
    If you change the aspect ratio you may also need to fiddle with the camera's setting such as Size (frustum) on the main camera's Camera component to get your game objects to fit the way you want them to.
     
  4. Amon

    Amon

    Joined:
    Oct 18, 2009
    Posts:
    1,372