video thumbnail 31:19
Unity Create a Game Series (E24. Menu)

2015-12-16

[public] 74.0K views, 1.14K likes, 13.0 dislikes audio only

In episode 24 we create a simple menu for controlling the volume and screen resolution.

Source code:

https://github.com/SebLague/Create-a-Game-Source

Unity project:

https://github.com/SebLague/Create-a-Game-Project

Follow me on twitter @SebastianLague

Support my videos on Patreon: http://bit.ly/sebPatreon


Game Development Support on Patreon
https://www.patreon.com/SebastianLague?ty=h
set the ui scale mode to scale
/youtube/video/EA-tBcTxE8M?t=25.51
give it a range of 1 to 300
/youtube/video/EA-tBcTxE8M?t=95.289001
using unity engine dot scene management
/youtube/video/EA-tBcTxE8M?t=636.48999
add all of our volume sliders
/youtube/video/EA-tBcTxE8M?t=941.60999
start off by looping through all of the toggles
/youtube/video/EA-tBcTxE8M?t=1084.24
get a array of all of the supported resolutions of the monitor
/youtube/video/EA-tBcTxE8M?t=1130.87
set screen resolution with active screen res index
/youtube/video/EA-tBcTxE8M?t=1224.62
set up some player preferences
/youtube/video/EA-tBcTxE8M?t=1307.99
load up all of those settings from the player prefs
/youtube/video/EA-tBcTxE8M?t=1409.24
loop through all of our resolution toggles
/youtube/video/EA-tBcTxE8M?t=1539.62
remove the audio listener from the from the main camera
/youtube/video/EA-tBcTxE8M?t=1621.01
set the default screen width
/youtube/video/EA-tBcTxE8M?t=1683.98
turn off the unity splash screen
/youtube/video/EA-tBcTxE8M?t=1707.35