Search Issue Tracker

Not Reproducible

Votes

0

Found in

5.3.5p7

Issue ID

814115

Regression

No

Null character anywhere in middle of InputField causes exception in InputField.MoveTextEnd

IMGUI

-

1. Open & play user attached project Repro scene.
Notice ArgumentOutOfRangeException coming up.

This happens because in input.MoveTextEnd (Repro.cs line 13) is called on a input field in which there is null character present in middle of string.

According to https://fogbugz.unity3d.com/default.asp?814117 this might cause problems for console builds where typing non printing key will cause null character to be inserted into input field.

Repro on 5.3.5p7, 5.4.0f1, 5.2.0f3

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.