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

Ratio/Resolution problem

Discussion in 'Editor & General Support' started by OzsubucO, Apr 13, 2015.

  1. OzsubucO

    OzsubucO

    Joined:
    Apr 13, 2015
    Posts:
    4
    Hey!
    I am making a 2D shooter as a school project and I have a problem as I build the scene.
    When I build in web player or other standalone I get kind of a black box on the right hand side. How do I get rid of it so that the actual game is set to the center?

    Here is a picture to better show the problem:
     
  2. Shushustorm

    Shushustorm

    Joined:
    Jan 6, 2014
    Posts:
    1,084
    Just some questions that might help solving this:
    Did you use any assets that might have influence on your camera?
    Maybe something that should split up the camera for multiplayer?
    Also, did you use Unity UI images for this or are those regular 2d sprites?
     
  3. OzsubucO

    OzsubucO

    Joined:
    Apr 13, 2015
    Posts:
    4
    No, didn't use any assets of that kind and the images are just 2D sprites. Although, the background is placed on a quad.

    EDIT: The camera have a vision just as big as the image.
     
    Last edited: Apr 13, 2015
  4. Shushustorm

    Shushustorm

    Joined:
    Jan 6, 2014
    Posts:
    1,084
    You only have one camera in your scene, right?
    If you click on your camera, does the little preview window show the same as the image you posted here?
    If so, maybe you just have to move the camera to the left.