void SetupGraphicsDropdown() { if (graphicsQualityDropdown == null) { GameObject newDropdown = Instantiate(dropdownItemPrefab, scrollViewContent); graphicsQualityDropdown = newDropdown.GetComponent <DropdownItem>(); } graphicsQualityDropdown.Init("Quality", QualitySettings.GetQualityLevel(), QualitySettings.names.ToList(), SetQuality); }
void SetupFullscreenDropdown() { if (fullScreenDropdown == null) { GameObject newDropdown = Instantiate(dropdownItemPrefab, scrollViewContent); fullScreenDropdown = newDropdown.GetComponent <DropdownItem>(); } fullScreenDropdown.Init("Fullscreen", 0, new List <string> { "FullScreen", "Windowed" }, SetFullScreen); }
void SetupResolutionDropdown() { resolutions = GetBestResolutions(); if (resolutionDropdown == null) { GameObject newDropdown = Instantiate(dropdownItemPrefab, scrollViewContent); resolutionDropdown = newDropdown.GetComponent <DropdownItem>(); } resolutionDropdown.Init("Resolution", GetStartingResolution(), GetResolutionCapabilities(), SetResolution); }