public virtual void OnCancel(BaseEventData eventData)
            {
                TMP_Dropdown dropdown = GetComponentInParent <TMP_Dropdown>();

                if (dropdown)
                {
                    dropdown.Hide();
                }
            }
Exemplo n.º 2
0
            public virtual void OnCancel(BaseEventData eventData)
            {
                TMP_Dropdown componentInParent = GetComponentInParent <TMP_Dropdown>();

                if ((bool)(UnityEngine.Object)(object) componentInParent)
                {
                    componentInParent.Hide();
                }
            }
Exemplo n.º 3
0
            public virtual void OnCancel(BaseEventData eventData)
            {
                TMP_Dropdown componentInParent = base.GetComponentInParent <TMP_Dropdown>();

                if (componentInParent)
                {
                    componentInParent.Hide();
                }
            }
Exemplo n.º 4
0
 static int Hide(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         TMPro.TMP_Dropdown obj = (TMPro.TMP_Dropdown)ToLua.CheckObject <TMPro.TMP_Dropdown>(L, 1);
         obj.Hide();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }