I’m using a sprite as a background-image
in a USS file. I have marked the 9-slice borders for this sprite in Unity (Mesh Type: Full Rect, Sprite Editor, 9-slice borders).
How can I set the padding (or margin) of an element to match the borders of this image? I want the content to not be in the border region.
I know how I can hard-code this in the USS file, but I’m hoping there’s a way to read it from the sprite itself.