3 using System.Collections.Generic;
7 namespace HKI.Core.UI.Settings
12 [RequireComponent(typeof(TMP_Dropdown))]
17 [SerializeField] List<TextLocalization> AntiAliasingModeTextLocalizations =
new List<TextLocalization>();
21 TMP_Dropdown dropdown = null;
26 dropdown = GetComponent<TMP_Dropdown>();
32 if(AntiAliasingMode != null)
34 List<TMP_Dropdown.OptionData> list =
new List<TMP_Dropdown.OptionData>();
35 for (
int i = 0; i < AntiAliasingModeTextLocalizations.Count; i++)
36 list.Add(
new TMP_Dropdown.OptionData(AntiAliasingModeTextLocalizations[i].GetText(Language)));
38 dropdown.ClearOptions();
39 dropdown.AddOptions(list);
41 dropdown.value = (int)AntiAliasingMode.
Value;
44 Debug.LogError(
"(UIAntiAliasingDropdown) AntiAliasingMode value is null!");
50 if(AntiAliasingMode != null)
56 List<TMP_Dropdown.OptionData> list =
new List<TMP_Dropdown.OptionData>();
57 for (
int i = 0; i < AntiAliasingModeTextLocalizations.Count; i++)
58 list.Add(
new TMP_Dropdown.OptionData(AntiAliasingModeTextLocalizations[i].GetText(Language)));
60 dropdown.ClearOptions();
61 dropdown.AddOptions(list);
63 dropdown.value = (int)AntiAliasingMode.
Value;
void SetAntiAliasingModeToDropdownValue()
Special Variable enables the use of the AntiAliasingModes data type as a variable of the settings sys...
AntiAliasingModes
All possible settings for anti aliasing.
Special Variable enables the use of the SystemLanguage data type as a variable of the settings system...
This MonoBehaviour fills and handles a dropdown (TMP_Dropdown) with anti aliansing settings...