Search Issue Tracker

Won't Fix

Votes

0

Found in

2023.2.0a18

2023.3.0a3

6000.0.0b11

6000.1.0a7

6000.2.0a1

6000.3.0a1

7000.0.0a1

Issue ID

UUM-37557

Regression

No

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

-

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

Reproducible with: 2023.2.0a18
Couldn’t test with: 2021.3.26f1, 2022.3.0f1, 2023.1.0b19, 2023.2.0a1 (compiler errors)

Reproducible on: macOS Ventura 13.2.1 (Intel)

Notes:
- 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

  1. Resolution Note:

    We unfortunately are unable to bring a fix for this without significant changes in behaviors that can't be back-ported. It is not possible handle theme change while in play mode as they are imported assets and there is no proper way to track what would be affected by changing the stylesheet.

    New developments in 6.3 added this capability and I was unable to reproduce the bug with them.

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.