Search Issue Tracker
Not Reproducible
Votes
1
Found in
5.0.0b20
Issue ID
663207
Regression
No
Dragging an input field from game view to console throws exceptions
To reproduce:
1. Import Unity UI examples or Open attached project
2. Open scene Controls
3. Enter play mode
4. Click and drag the big input field. Drag it into the console
5. Notice the exceptions being thrown:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.TextGenerator.get_characterCountVisible () (at C:/buildslave/unity/build/artifacts/generated/WP8/modules/TextRenderingBindings.gen.cs:678)
UnityEngine.UI.InputField.LineDownCharacterPosition (Int32 originalPos, Boolean goToLastChar) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/InputField.cs:1118)
UnityEngine.UI.InputField.MoveDown (Boolean shift, Boolean goToLastChar) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/InputField.cs:1153)
UnityEngine.UI.InputField <MouseDragOutsideRect>c__Iterator3.MoveNext () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/InputField.cs:706)
UnityEngine.EventSystems.EventSystem:Update()
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
tattz
Jan 29, 2015 08:53
Nullref only happens if the Input Field is empty when starting Play Mode. And this problem only concerns text fields with multiple lines (New Lines). I got around this problem with having some text in the field at the start so even if it was empty later, the nullref didn't occur.