Unity Issue Tracker - IndexOutOfRangeException is thrown and UI Toolkit doesn't show anything when the theme is changed and Enter Play Mode Options is enabled while Reload Domain is disabled
Closed
UUM-37557
IndexOutOfRangeException is thrown and UI Toolkit doesn't show anything when the theme is changed and Enter Play Mode Options is enabled while Reload Domain is disabled
Unity: UI Toolkit Framework
Won't Fix
6.3.X
6.2.X
6.1.X
6.0.X
2023.3.X
2023.2.X
Cancelling this 2023.2 tech release issue since the support for this release has come to end of life. Cancelling this 2023.2 port case does not affect any LTS or Unity 6 Beta/Preview that remain open.
Reproducible with:
1. Open project “UITKTest.zip”
2. Open “SampleScene”
3. Enter Play Mode and observe the label displayed in the top left corner
4. Exit Play Mode
5. Open “RuntimeTheme.tss” and remove “white-space: nowrap;” property from “.unity-label selector”
6. Enter Play Mode
Expected result: no errors are thrown in the Console and the label is displayed in the top left corner
Actual result: IndexOutOfRangeException is thrown in the Console and the label is not displayed
This happens only if “Project Settings\Editor\Enter Play Mode Settings\Enter Play Mode Options” is enabled and “Enter Play Mode Settings\Reload Domain“ is disabled
Also reproducible in Standalone Player
Prioritise and Follow this issue
Have a workaround or additional info about this issue?