1using NaughtyAttributes;
3using System.Collections;
4using System.Collections.Generic;
6using System.Text.RegularExpressions;
15 bool addedComponents =
false;
23 dropdown = GetComponent<Dropdown>();
34 dropdown.OnPointerClick(
null);
35 if (dropdown.transform.Find(
"Dropdown List"))
37 var Items = dropdown.transform.Find(
"Dropdown List").gameObject.GetComponentsInChildren<Toggle>();
38 foreach (var item
in Items)
40 var data = Regex.Match(item.name,
@"\d+");
41 int i =
int.Parse(data.Value);
43 item.gameObject.AddComponent<BoxCollider>();
44 item.gameObject.GetComponent<BoxCollider>().size =
new Vector3(150, 25, 1);
46 item.gameObject.GetComponent<
PointerInteractable>().OnClick.AddListener(() => { GetComponentInParent<ActionAdderDropdown>().onValueChangedVR(i); });
UnityEngine.UI.Button Button
GameObject StageManagerVRContent