Message 1 of 4
error CS1503: Argument 1: cannot convert from 'System.Collections.Generic.List<string>' to 'string'

Not applicable
05-15-2021
05:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey, i'm making this game and this error just showed up and i cant find a way to solve it. Pls help :'(((
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using TMPro;
using UnityEngine;
public class FullScreen : MonoBehaviour
{
public Dropdown resolutionDropdown;
Resolution[] resolutions;
void Start()
{
resolutions = Screen.resolutions;
resolutionDropdown.ClearOptions();
List<string> options = new List<string>();
for (int i = 0; i < resolutions.Length; i++)
{
string option = resolutions[i].width + "x" + resolutions[i].height;
options.Add(options);
}
resolutionDropdown.AddOptions(options);
}
public void SetFullCreen (bool isFullScreen)
{
Screen.fullScreen = isFullScreen;
}
}