Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

ArgumentOutOfRangeException

Discussion in 'UGUI & TextMesh Pro' started by EdgarCarrera, Aug 23, 2014.

  1. EdgarCarrera

    EdgarCarrera

    Joined:
    Apr 21, 2014
    Posts:
    255
    HELP PLEASE; The scene work. but if i add text on formulary i get a error:

    ArgumentOutOfRangeException: Argument is out of range.
    Parameter name: index
    System.Collections.Generic.List`1[UnityEngine.UICharInfo].get_Item (Int32 index) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:633)
    UnityEngine.UI.InputField.GenerateCursor (System.Collections.Generic.List`1 vbo, Vector2 roundingOffset) (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/InputField.cs:1362)
    UnityEngine.UI.InputField.OnFillVBO (System.Collections.Generic.List`1 vbo) (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/InputField.cs:1323)
    UnityEngine.UI.InputField.UpdateGeometry () (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/InputField.cs:1289)
    UnityEngine.UI.InputField.Rebuild (CanvasUpdate update) (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/InputField.cs:1266)
    UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/CanvasUpdateRegistry.cs:86)
    UnityEngine.Canvas.SendWillRenderCanvases () (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/UICanvasBindings.cs:122)


    upload_2014-8-22_21-19-4.png

    upload_2014-8-22_21-18-6.png
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,165
    Please raise a bug so we can see how you have configured this scene.
     
  3. JosiahBradley

    JosiahBradley

    Joined:
    Nov 6, 2014
    Posts:
    3
    I am getting a very similar error. Will attempt to create a formal test scene for bug submission tomorrow. Using 4.6.1p5.

    ArgumentOutOfRangeException: Argument is out of range. Parameter name: index System.Collections.Generic.List`1[UnityEngine.UICharInfo].get_Item (Int32 index) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:633) UnityEngine.UI.InputField.SetDrawRangeToContainCaretPosition (UnityEngine.TextGenerator gen, Int32 caretPos, System.Int32& drawStart, System.Int32& drawEnd) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/InputField.cs:1482)

    Edit: Bug submitted here: http://fogbugz.unity3d.com/default.asp?669227_4jg4r02bdv9ph9ck
     
    Last edited: Feb 3, 2015
  4. Ben-BearFish

    Ben-BearFish

    Joined:
    Sep 6, 2011
    Posts:
    1,204
    I'm getting a similar error in 5.2.2f1, as mentioned in this thread. Was there a regression with regards to this?