static public int GetCharacterIndexFromPosition(IntPtr l) { try { UnityEngine.UI.InputField self = (UnityEngine.UI.InputField)checkSelf(l); UnityEngine.Vector2 a1; checkType(l, 2, out a1); var ret = self.GetCharacterIndexFromPosition(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }