I have 2 images like so
Can see there’s a shadow image just below, to create a 3D like button. When I move the button down 10 pixels (like it’s being clicked) it looks like so
As you can see the button covers the entirety of the shadow (which is good) however if this button was to be smaller you can see the shadow ui edges poking out.
Note that both images I used are the exact same size and both the X and Y axis don’t go past 1024
Messing around more I noticed changing the SliceScale would remove this problem, but also result in the corners become different levels on roundness. So my question is how can I prevent this from happening without altering the corner sizes (the corners should maintain a consistent size irrelevant of the size of the button.