I have a button with an image and a label as child elements. And I am using the following USS:
image {
min-width: 400px;
padding-right: 600px;
}
image--thumbnail {
width: 80px;
height: 80px;
}
.button {
border-color: grey;
background-color: rgba(149, 149, 149, 0.5);
margin-bottom: 5px;
border-radius: 3px;
border-width: 3px;
font-size: 24px;
-unity-text-align: middle-center;
color: black;
-unity-font: url('project://database/Assets/Fonts/FiraCode/FiraCode-Retina.ttf?fileID=12800000&guid=8377f75cf15bf439fa06cc8c998c56f2&type=3#FiraCode-Retina');
}
I’ve had the button class for a little while and added the image class today. Somehow no matter what class I add to my USS file it doesn’t get matched on my UI elements. I’ve tried applying the button class to some element with the UI debugger and it is immediately recognized. But when I try any new class (including image) nothing happens even though I see image in the class list and both classes are in the same USS file.
I even restarted Unity and moved the USS file around. Do you have any idea what might be going wrong?