Unity Issue Tracker - @import is stripped from the associated .uss file when saving .uxml
Fixed
UUM-14414
@import is stripped from the associated .uss file when saving .uxml
Unity: UI Builder
UI Builder
Fixed
2022.1.X
2021.3.X
Won't Fix
2020.3.X
Fix for 2022.1.X: [UI Builder] @import is stripped from the associated .uss file when saving .uxml
Fixed in: 2021.3.12f1
Fix in 2020.x not supported since this would require a com.unity.ui.builder package release (not more supported)
How to reproduce:
1. Open the attached "case_1404986" project
2. Open the "Assets -> CardCreator -> cardCreatorV2.5" Visual Tree Asset file in the Project Browser
3. Observe the "cdDefaultTheme" Style Sheet contents under the Style Sheets section
Expected result: "fixUnityStyles" Style Sheet contents are successfully imported to the "cdDefaultTheme" Style Sheet and can be observed under the last one
Actual result: @import is stripped when saving the "cardCreatorV2.5" Visual Tree Asset