Im doing a settings menu tutorial by Brackeys but for some reason by the “resolution dropdown” part I cant insert anything into the box
Script:
{
public AudioMixer audioMixer;
public Dropdown resolutionDropdown;
Resolution[] resolutions;
private void Start()
{
resolutions = Screen.resolutions;
resolutionDropdown.ClearOptions();
List<string> options = new List<string>();
int currentResolutionIndex = 0;
for (int i = 0; i < resolutions.Length; i++)
{
string option = resolutions_.width + " x " + resolutions*.height;*_
options.Add(option);
if (resolutions*.width == Screen.currentResolution.width &&*
resolutions*.height == Screen.currentResolution.height)*
{
currentResolutionIndex = i;
}
}
resolutionDropdown.AddOptions(options);
resolutionDropdown.value = currentResolutionIndex;
resolutionDropdown.RefreshShownValue();
}
public void SetVolume(float volume)
{
audioMixer.SetFloat(“volume”, volume);
}
public void SetQuality(int qualityIndex)
{
QualitySettings.SetQualityLevel(qualityIndex);
}
public void SetFullScreen(bool isFullscreen)
{
Screen.fullScreen = isFullscreen;
}
}
[125178-capture.jpg|125178]
anything wrong? is it possibly because I have an older version of unity?