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. Dismiss Notice

Bug 2022.1.0b9 UI Builder / Label / Text property loses focus while typing

Discussion in '2022.1 Beta' started by fdefalco, Feb 24, 2022.

  1. fdefalco

    fdefalco

    Joined:
    Sep 2, 2017
    Posts:
    2
    In UI Builder, when editing the Text property of the Label control, the field loses focus and is accompanied by an error in the console:

    InvalidOperationException: Collection was modified; enumeration operation may not execute.
    System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () (at <cdc4992cc04a4e77a24a09cd121af77b>:0)
    System.Collections.Generic.List`1+Enumerator[T].MoveNext () (at <cdc4992cc04a4e77a24a09cd121af77b>:0)
    UnityEngine.UIElements.UIElementsRuntimeUtility.UpdateRuntimePanels () (at <cc5474af1f5a45a6ac45ded47550e252>:0)
    UnityEngine.UIElements.UIElementsRuntimeUtilityNative.UpdateRuntimePanels () (at <bc0d38bd5492484ab8991d576c6dea70>:0)

    This means that trying to type beyond 1 character in the text property fails. I've resorted to copy/pasting text or editing the uxml file directly.
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,102