void Awake() { field.interactable = false; field.text = defaultPrefix; field.textComponent.enabled = false; m_MoveToEnd = true; var submitEvent = new TMPro.TMP_InputField.SubmitEvent(); submitEvent.AddListener(OnEndEdit); field.onEndEdit = submitEvent; FadeBackgrounds(0.0f, 0.1f); }
static int get_onFocusLost(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_InputField obj = (TMPro.TMP_InputField)o; TMPro.TMP_InputField.SubmitEvent ret = obj.onFocusLost; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onFocusLost on a nil value" : e.Message)); } }
static int set_onFocusLost(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TMPro.TMP_InputField obj = (TMPro.TMP_InputField)o; TMPro.TMP_InputField.SubmitEvent arg0 = (TMPro.TMP_InputField.SubmitEvent)ToLua.CheckObject(L, 2, typeof(TMPro.TMP_InputField.SubmitEvent)); obj.onFocusLost = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onFocusLost on a nil value" : e.Message)); } }