I am having a issue where this happens in uss when it saves:
This:
#wrap > VisualElement, #wrap > TemplateContainer {
position: absolute;
display: none;
}
Always reverts to this:
#wrap > VisualElement {
position: absolute;
display: none;
}
#wrap > TemplateContainer {
position: absolute;
display: none;
}
Is there any chance this will change? It bulks up my uss file.
On a side note, comments are also removed.
Cheers!
This kind of issue has been brought up before.
If you want to use hand written USS/UXML - you cannot edit those assets within UIBuilder in any way - your hand written code (and attributes
, when you are trying to use relative resource paths) will always be overwritten in it’s entirety by UIBuilder.
You will need to keep your hand written USS/UXML out of that editor indefinitely - for custom controls you can still reference them - but only edit them by hand if you need to preserve you hand written layouts and stylesheets and/or your inhouse coding standards.
Okay thank you. That kinda stinks but it is what it is!
Thanks Unity team for all the great work!