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
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.