uiBuilder breaks uss cursor parameter

When you have a curstom class with a cursor parameter like this:

.button {
    cursor: resource('mycursor') 14 6;
}

and you add a new class via visual studio and save the file.

Then the UiBuilder reads the file, opens it and reformats it. Then the class looks like this:

.button {
    cursor: resource('mycursor') 14, 6;
}

But now the UIbuilder can’t read the uss anymore and throws the error:

Unhandled type CommaSeparator

You have to manually delete the commas and resave the file. Until the next time the UIBuilder tries to interpret the uss file and readds the commas which it cannot read…

I am using Unity 2021.2.0, the bug did not appear Unity versions which had uitoolkit and uibuilder as packages.

Copy-pasting my answer to you other thread :slight_smile:

Can you file a ticket with Help-> Report a bug ? That will help us track the issue and help backporting any fixes once they land into the latest version.

Bug reported: (Case 1379099)

1 Like