コード例 #1
0
            public virtual void OnCancel(BaseEventData eventData)
            {
                TMP_Dropdown dropdown = GetComponentInParent <TMP_Dropdown>();

                if (dropdown)
                {
                    dropdown.Hide();
                }
            }
コード例 #2
0
            public virtual void OnCancel(BaseEventData eventData)
            {
                TMP_Dropdown componentInParent = GetComponentInParent <TMP_Dropdown>();

                if ((bool)(UnityEngine.Object)(object) componentInParent)
                {
                    componentInParent.Hide();
                }
            }
コード例 #3
0
            public virtual void OnCancel(BaseEventData eventData)
            {
                TMP_Dropdown componentInParent = base.GetComponentInParent <TMP_Dropdown>();

                if (componentInParent)
                {
                    componentInParent.Hide();
                }
            }
コード例 #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));
     }
 }