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

Facebook Gameroom & aspect ratio

Discussion in 'Editor & General Support' started by pndeveloper, Jun 27, 2018.

  1. pndeveloper

    pndeveloper

    Joined:
    Dec 7, 2015
    Posts:
    29
    When building a Windows .exe for Facebook Gameroom, is there any way to constrain the aspect ratio of the game window? In my testing it seems the window can always be resized to any dimensions...
     
  2. pndeveloper

    pndeveloper

    Joined:
    Dec 7, 2015
    Posts:
    29
    Figured out a solution... Seems you can't stop the window from being resized, but by using Screen.SetResolution you can keep your game at a fixed aspect ratio and it will appear letterboxed/pillarboxed within the Gameroom window.