Search Unity

Feedback Add option to disable letterboxing

Discussion in 'macOS' started by User340, Mar 7, 2019.

  1. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    I have found that letterboxing is often not desired in standalone builds. I want my app to take full advantage of the screen. A checkbox in the Player Settings Use Letterboxing would be most welcome.
     
  2. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    Bump. Still would love to see this implemented. My app is flexible and does not need to be constricted to any one aspect ratio.
     
  3. Ukounu

    Ukounu

    Joined:
    Nov 2, 2019
    Posts:
    208
    By default Unity never adds any black bars on top/bottom/sides (if that's what you are talking about), as far as I know. I think these will appear only if you attempt to enforce (in full screen) aspect ratio incompatible with your monitor resolution - e.g., 4:3 ratio on 16:9 monitor.
     
  4. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    It's only in fullscreen mode that I notice them. Here are my aspect ratio settings, are they correct? Screen Shot 2019-11-27 at 8.30.57 AM.png
     
  5. Ukounu

    Ukounu

    Joined:
    Nov 2, 2019
    Posts:
    208
    Yes. Perhaps you are seeing black bars because you select from drop-down menu at game start resolution not compatible with your monitor? If you have a 16:9 monitor, you should choose only resolutions matching that ratio (e.g., 1920x1080).
     
  6. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    I have that dialog disabled.
     
  7. Ukounu

    Ukounu

    Joined:
    Nov 2, 2019
    Posts:
    208
    Do you have "Default is native resolution" checked in player settings? Unless you manually set resolution somewhere in scripts, when this option enabled, Unity will always set game resolution to match display, so there should be no black bars.
     
  8. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    It's enabled, still showing black bars.
     
  9. Ukounu

    Ukounu

    Joined:
    Nov 2, 2019
    Posts:
    208
    I think the solution is either implementing in-game settings allowing players to set game resolution, or detecting screen resolution automatically at game start and setting your game to that resolution.