huge change, new desig wip
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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<TMP_Dropdown>();
|
||||
PopulateList();
|
||||
}
|
||||
void PopulateList()
|
||||
{
|
||||
string[] enumNames = Enum.GetNames(typeof(VirtualKeyCode));
|
||||
List<string> keyNames = new List<string>(enumNames);
|
||||
Dropdown.AddOptions(keyNames);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user