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. Dismiss Notice

Yet Another Post on Aspect Ratio Issue regarding WebGL

Discussion in '2D' started by adiboy360, Dec 2, 2020.

  1. adiboy360

    adiboy360

    Joined:
    Dec 3, 2019
    Posts:
    5
    [SOLVED]

    Hi all,

    So, I finished my game (title yet to be finalized). In MAC standalone build, aspect ratios are perfect. But in WebGL, I'm having issues. See pictures for more information.

    What I have tried:
    - Canvas is 'Scale with Screen Size' with resolution 1080 X 1920
    - Used Auto Letter Box (Force Camera Aspect Ratio with X = 9, Y = 16)

    Any assistance or recommendations would be greatly appreciated.

    In Standalone build (perfect, no issues):
    Screen Shot 2020-12-01 at 8.16.33 PM.png

    In WebGL build (ratios all messed up):
    Screen Shot 2020-12-01 at 8.20.17 PM.png

    For additional info on my canvas, etc.:
    Screen Shot 2020-12-01 at 8.18.49 PM.png
     
    Last edited: Dec 2, 2020
  2. adiboy360

    adiboy360

    Joined:
    Dec 3, 2019
    Posts:
    5
    Solved. Sticking to free aspect and reorganizing as necessary did the trick.