Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2020.3
2021.2.7f1
2021.3
2022.1
2022.2
Issue ID
1404986
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.33f1, 2021.3.1f1, 2022.1.0f1, 2022.2.0a11
Couldn't test with: 2019.4.38f1 (the project isn't compatible)
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 mono_dump_native_crash_info when changing a Particle System Renderer’s Material Shader to Standard Unlit
- VFX Prefab doesn’t have Preview icon in Project window and Preview window is empty in Inspector window
- Visual Effect Graph error message does not disappear and lasts forever until the Visual Effect Graph is reopened even when the error causing connection/node is deleted and Visual Effect Graph is saved
- “RenderSettings customReflection texture has invalid type” error keeps getting thrown even when Environment Reflections was set back to Skybox from Custom with an invalid texture
- Particle System with the custom Material breaks the Scene view when the material is using a Shader Graph with the Texture with the power of negative value
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a15