Search Issue Tracker
Fixed
Fixed in 2021.3.12f1, 2022.1.19f1
Unknown (hidden) 2020.3.X
Votes
0
Found in
2020.3.38f1
2021.3.9f1
2022.1.16f1
Issue ID
UUM-14414
Regression
No
[UI Builder] @import is stripped from the associated .uss file when saving .uxml
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
Reproducible with: 2020.3.38f1, 2021.3.9f1, 2022.1.16f1
Couldn't test with: 2019.4.38f1 (the project isn't compatible)
Already fixed in 2022.2.0a15 but needs a fix in 2021.3 and 2022.1.
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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Resolution Note (fix version 2022.1.19f1):
Fix for 2022.1.X: [UI Builder] @import is stripped from the associated .uss file when saving .uxml
Resolution Note (fix version 2021.3.12f1):
Fixed in: 2021.3.12f1
Resolution Note (2020.3.X):
Fix in 2020.x not supported since this would require a com.unity.ui.builder package release (not more supported)