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.

Question Each time it runs, the game's window is small

Discussion in 'Getting Started' started by qinyuq, Jan 29, 2023.

  1. qinyuq

    qinyuq

    Joined:
    Jan 29, 2023
    Posts:
    9
    I'm a raw recruit to unity. In the picture below, every time I run it, I just have this little screen that doesn't fit with the screen resolution, and this is what the .exe file looks like when it opens, the same thing. How can I adjust this window, please? (ㄒoㄒ)



     
  2. AngryProgrammer

    AngryProgrammer

    Joined:
    Jun 4, 2019
    Posts:
    437
    Camera and canvas settings look fine. The reason is probably because the elements on the canvas have a fixed size.

    Can you send a rect transform of one of the canvas elements (first in hierarchy of canvas)?
     
  3. qinyuq

    qinyuq

    Joined:
    Jan 29, 2023
    Posts:
    9
    Thanks for your reply. Here it is.

    upload_2023-1-29_17-51-4.png
     
  4. AngryProgrammer

    AngryProgrammer

    Joined:
    Jun 4, 2019
    Posts:
    437
    1. Check what you have set in Project Settings. Search phrase (upper right corner of the phrase field) use Default Is Native Resolution.
    2. If everything is fine there, check the game preview again. Change the settings from Free Aspect to Full HD and see how it looks at this resolution (is it the same effect as after compilation).
     
  5. qinyuq

    qinyuq

    Joined:
    Jan 29, 2023
    Posts:
    9
    I've tried your advise, but sadly, the setting is chosen. And the game preview doesn't affect the actual performance.
    upload_2023-1-29_18-39-1.png
    upload_2023-1-29_18-39-11.png
     
  6. qinyuq

    qinyuq

    Joined:
    Jan 29, 2023
    Posts:
    9
    I wonder if I chose a genre other than a 2D project when I created this project, causing unity to be built at some sort of fixed resolution. Other projects I've created don't have this problem.
     
  7. RichAllen2023

    RichAllen2023

    Joined:
    Jul 19, 2016
    Posts:
    1,026
    Probably a daft question, but what's it supposed to be? If you don't mind me asking?
     
  8. qinyuq

    qinyuq

    Joined:
    Jan 29, 2023
    Posts:
    9
    After running the.exe file it should present a full-screen scene, but not black at all corners.