SET RESOLUTION IN UNITY - Main Menu Pt 2

Опубликовано: 08 Июнь 2026
на канале: Practical Programming
9,084
167

Github: https://github.com/SK-Studios/Main-Me...

Learn how to set the resolution of your game with a dropdown menu and a toggle for fullscreen mode!

After recording, I realised that I forgot to set the resolution when the game starts, so to do that just add this code in the MainMenu script:

void Awake () {
SetScreenSize(3)
}

This will call the SetScreenSize function that we created with an input of 3 (which will be 1920 x 1080) - you can change the input to a 0, 1, or 2 if you'd prefer to have a different default resolution.

..............................................................................................

Please leave any questions in the comments - I'll get back to you ASAP.
Don't forget to like, comment, share and subscribe!
If you don't want to miss a video, make sure to hit the bell icon as well!

.............................................................................................

All Unity Tutorials: https://bit.ly/all-unity-tutorials
Beginner Unity Tutorials: https://bit.ly/unity-beginner-tutorials
Intermediate Unity Tutorials: https://bit.ly/unity-intermediate-tut...
Main Menu in Unity: https://bit.ly/unity-main-menu

.............................................................................................

♥ Subscribe: https://bit.ly/sk-studios-youtube
● Instagram:   / _skstudios_  
● Itch: https://sk-studios.itch.io
● Stealth (Latest Game): https://sk-studios.itch.io/stealth

..............................................................................................