Hello, im having a problem with the settings.
I followed this tutorial.
however,every time i open the game the Video options show -Very low- and a 320 x 240 resolution, however, the real resolution is the one i picked before and the settings are at high, but the graphic display is showing the wrong information, how can i fix this?.
{
public AudioMixer AudioMixer;
public Dropdown dropdown;
public Dropdown dropdownresolution;
public bool FullScreen;
Resolution[] resolutions;
private void Start()
{
resolutions = Screen.resolutions;
dropdownresolution.ClearOptions();
List<string> options = new List<string>();
int currentResolutionIndex = 0;
for (int i = 0; i < resolutions.Length; i++){
string option = resolutions[i].width + "x" + resolutions[i].height;
options.Add(option);
if( resolutions[i].width == Screen.width && resolutions[i].height == Screen.height )
{
currentResolutionIndex = i;
}
}
dropdownresolution.AddOptions(options);
}
public void setResolution (int resolutionIndex)
{
Resolution resolution = resolutions[resolutionIndex];
Screen.SetResolution(resolution.width, resolution.height, Screen.fullScreen);
}
public void SetQuality(int qualityIndex)
{
QualitySettings.SetQualityLevel(qualityIndex);
}
public void SetFullScreen ()
{
if (dropdown.value == 1)
{
FullScreen = false;
} else { FullScreen = true; }
Screen.fullScreen = FullScreen;
}