Unable to assign a dropdown variable in the inspector

Im doing a settings menu tutorial by Brackeys but for some reason by the “resolution dropdown” part I cant insert anything into the box :confused:
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?

I had the same issue, but for a different reason. My mistake was that I was using a TMPro Dropdown and had a variable for a standard Dropdown. I would recommend checking that as well, if someone has a similar issue.

Hello there! I just had this problem too and we watched the same training with you. I just found the solution and wanted to share it with you.

public Dropdown resolutionDropdown;

in your code instead of

public TMPro.TMP_Dropdown resolutionDropdown;

Just write!

Try dragging the “ResolutionOption” GameObject directly into this variable.
Make sure it really has a “DropDown” component on it.
If that doesn’t work, please post a screenshot of the “ResolutionOption” GameObject.

@ArseneySorokin I fixed it, it must have been a glitch, all i did was redo the whole dropdown