Search Issue Tracker
Fixed in 1.0.0-preview.6
Votes
1
Found in [Package]
1.0.0-preview.5
Issue ID
1274584
Regression
No
Editor freezes and memory usage increases when moving a selector between USS files
How to reproduce:
1. Open the attached project (case-1274584.zip)
2. Open the UI Builder window (Window -> UI -> UI Builder)
3. Drag the '.unity-button:hover' selector from 'test.uss' to 'test2.uss'
4. Drag the '.unity-button' selector from 'test.uss' to 'test2.uss' and make sure that it lands above '.unity-button:hover'
Expected result: the selector is successfully transferred to the other USS file
Actual result: the Editor freezes and starts using a lot of memory
Reproducible with: 1.0.0-preview.1, 1.0.0-preview.5 (2019.4.9f1, 2020.1.4f1, 2020.2.0b1)
Could not test with: 2018.4.27f1 (package not compatible)
Could not test with package versions: 0.11.2-preview (can not drag the selector from one USS file to another)
Notes:
1. The issue does not occur if the UXML file doesn't contain the element that the selector targets (in this example a button)
2. The issue seems to occur only when dragging a selector above another selector that is of the same class and additionally contains pseudo-states
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (fix version 1.0.0-preview.6):
Fixed in UI Builder 1.0.0-preview.6.