- Home /
TextMeshPro dropdown default value change
Aight hello there. This is my first question here so be kind thanks :DD. I am currently working on school project of mine, and i run into a problem while creating the UI. I am using the TMP of course everywhere i can.
The thing is, i have a dropdown for changing the quality of the game, the default setting is High i set that in start method with script of course, but unity keeps selecting the first option, a.k.a the Low option as the default value of dropdown, even though the High is selected. After i change the value to something else everything works like a charm, the quality changes by the selected value in dropdown, but when i start the game it shows Low even when the enabled quality is High.
That brings me to my question finally. How can i change the default value thats shown on my dropdown when i start the game and go to Options settings? Or alternatively, how do i enable that option in Start method as well and disable the first option, if this was is even possible? I am still having troubles with syntax. Thanks!