Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: EToreo on November 26, 2013, 07:08:42 PM
-
I type past the end of a input field and then press backspace to get this crash:
ArgumentOutOfRangeException: startIndex + count > this.length
Parameter name: count
System.String.Remove (Int32 startIndex, Int32 count) (at /Applications/buildAgent/work/c514da0c8183631c/mcs/class/corlib/System/String.cs:1747)
UnityEngine.TextEditor.Backspace () (at C:/BuildAgent/work/ea95e74f6e5f192d/Runtime/Export/TextEditor.cs:166)
UIInput.ProcessEvent (UnityEngine.Event ev) (at Assets/NGUI/Scripts/UI/UIInput.cs:504)
UIInput.OnGUI () (at Assets/NGUI/Scripts/UI/UIInput.cs:486)
-
What do you mean by "past the end"?
-
What do you mean by "past the end"?
Sorry, for what ever reason, I did not get a notification that you had responded.
"Past the end" means past the end of the text field's horizontal area. So if I have 50 charters worth of horizontal space and I type 51 characters, then backspace, it will crash.
-
It all seems to work fine here, so if you have the latest version and run into this issue I can use a repro case to look at. Just please don't post it here -- send it to support at tasharen.com.
-
Will do. If the latest version doesn't fix it, hopefully I can create a test case. It only happens with one or two of my text boxes.