Esempio n. 1
0
    static int get_inputType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TMPro.TMP_InputField           obj = (TMPro.TMP_InputField)o;
            TMPro.TMP_InputField.InputType ret = obj.inputType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index inputType on a nil value" : e.Message));
        }
    }
Esempio n. 2
0
    static int set_inputType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TMPro.TMP_InputField           obj  = (TMPro.TMP_InputField)o;
            TMPro.TMP_InputField.InputType arg0 = (TMPro.TMP_InputField.InputType)ToLua.CheckObject(L, 2, typeof(TMPro.TMP_InputField.InputType));
            obj.inputType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index inputType on a nil value" : e.Message));
        }
    }