using System.Collections; using System.Collections.Generic; using System; using UnityEngine; using TMPro; using WindowsInput.Native; public class KeyDropdownManager : MonoBehaviour { TMP_Dropdown Dropdown; void Start() { Dropdown = GetComponent(); PopulateList(); } void PopulateList() { string[] enumNames = Enum.GetNames(typeof(VirtualKeyCode)); List keyNames = new List(enumNames); Dropdown.AddOptions(keyNames); } }