diff --git a/Runtime/Scripts/Controls/ComboBox/DropDownListButton.cs b/Runtime/Scripts/Controls/ComboBox/DropDownListButton.cs index 2558fba..19cc182 100644 --- a/Runtime/Scripts/Controls/ComboBox/DropDownListButton.cs +++ b/Runtime/Scripts/Controls/ComboBox/DropDownListButton.cs @@ -8,7 +8,11 @@ namespace UnityEngine.UI.Extensions { public RectTransform rectTransform; public Button btn; +#if UNITY_2022_1_OR_NEWER + public TMPro.TMP_Text txt; +#else public Text txt; +#endif public Image btnImg; public Image img; public GameObject gameobject; @@ -19,7 +23,11 @@ namespace UnityEngine.UI.Extensions rectTransform = btnObj.GetComponent(); btnImg = btnObj.GetComponent(); btn = btnObj.GetComponent