USS auto-creating - default value error

There is an issue I found during generating USS files from UIBuilder. If you choose inlined style default value after editing like
_width: auto; (_when property is highlighted with bold font),
the property extracted to .uss this way:
width: ;
which is parsed incorrectly with an error

StyleSheet import: type=Syntax, code=None file=Assets/Resources/test.uss Line 7, Column 13: An unexpected error occurred…

In this case you have to edit .uss manually to fix an error.

unity version 2019.4.7
com.unity.ui.runtime 0.0.4-preview
com.unity.ui.builder: 1.0.0-preview.3

You are very correct. Should be fixed in the next drop. Thanks for reporting.

By the way, couldn’t help but notice you are using com.unity.ui.runtime. Have you seen this?

1 Like

Yes, I see, thank you!