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

UGUI Canvas Scalar shows different results in Fullscreen Standalone

Discussion in 'UGUI & TextMesh Pro' started by BusStopStudios, Jan 12, 2016.

  1. BusStopStudios

    BusStopStudios

    Joined:
    Mar 28, 2015
    Posts:
    22
    Does the Canvas Scalar Component work in Fullscreen Standalone on Windows. I have a scene created that should scale in width and the scalar is set to 1920x1080 - 16:9 (wider than my monitor which is 16:10) which right now would be the skinniest in height and should show the items properly. I use the same technique when making apps for phones and everything works but when I want to test different resolutions in windows, after changing the monitor display it does not render properly.

    I have been testing this out for a day now, an image placed in the middle of the canvas that has an anchor in the middle does not scale like it does in the editor. When I change my monitor resolution on my laptop the Image grows and does not display properly. I use Regedit and delete the App keys to make sure everything resets and it does. My current Resolution is 2880x1800 and the image displays fine but when I go to 1920x1080 the image seems to stretch incorrectly.

    I don't want to assume that it will show properly on all resolutions and want to test it. Should this be working?

    I have attached screenshots to compare.

    Settings and details:
    I do not want to have the resolution selection window show so I in the PlayerSettings I have set the Resolution and Presentation to be Full Screen and Native Resolution with the Display Resolution dialog to disabled, Resizable Window is disabled and supported Aspect Ratios to be everything.

    Scene Setup:
    Ortho Camera and size set to 9.6
    Canvas Object
    Canvas Component - Set to Screen Space - Camera (with the current game camera attached)
    Canvas Scalar Component - Scale with Screen size set to 1920x1080 (16:9) and Match Width (Since the game is supposed to be widescreen and always landscape)​
    A Text object that is anchored to the top left (used for reference)
    An Image that is set to Middle Center

    Screenshot of the editor with game view set to 16:9 (the current resolution of the monitor is set to 1920x1080 the same as the Canvas Scalar)
    UnityDisplay.png

    Here is a screenshot of the game in fullscreen standalone. The monitor resolution is 1920x1080 and the App is running the same. Verified in Regedit Screenmanager Resolution Width - 1920, Screenmanager Resolution Height - 1080
    FullScreenStandalone.png
     
  2. DWilliams

    DWilliams

    Joined:
    Jan 12, 2015
    Posts:
    63
  3. BusStopStudios

    BusStopStudios

    Joined:
    Mar 28, 2015
    Posts:
    22
    Thanks DWilliams!!!

    I did a fair number of searches but that one didn't turn up. I'm on 5.3.1f1 I'll try that patch that's on the thread.