What do these numbers mean? (If it’s documented somewhere, I apologize. I searched for it and I can’t find it)
using a simple example i created my “align-self” shows “inline”, and “border-bottom-left-radius” shows “unity stylesheet”
i my simple example the “background-image” shows “11” not “521”
i was wondering same as you because some of my styles have words and others numbers.
two other things i’ve noticed…
-
in Rider in a .uss stylesheet if we mouse over the selector there is a pop-up showing a specificity.value, like from this website:
Specifics On CSS Specificity | CSS-Tricks
This can be very useful. -
but, in Rider we are looking at files saved on the file system. and, the debugger is looking at files saved on the file system possibly with changed values NOT yet saved to disk. Therefore, the Rider specificity pop-up may not match the real value we might calculate using the debugger.
This makes me wonder if Unity is doing something with the debugger and specificity values. But, i’m not sure what your values mean.
Hello! Those number are indeed tied to the style’s specificity, however we calculate it differently than CSS. You can read about the Unity’s selector precedence here.
Hope this helps answering your question.