static int OnSubmit(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); TMPro.TMP_Dropdown obj = (TMPro.TMP_Dropdown)ToLua.CheckObject <TMPro.TMP_Dropdown>(L, 1); UnityEngine.EventSystems.BaseEventData arg0 = (UnityEngine.EventSystems.BaseEventData)ToLua.CheckObject <UnityEngine.EventSystems.BaseEventData>(L, 2); obj.OnSubmit(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }