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.