An interesting thing I discovered today that I figured I’d share.
Turns out, UICorner takes into consideration the size of a UI’s BorderSizePixel, and will resize the UI to be smaller when the border goes inwards.
What’s more, is that UIStroke doesn’t. This makes a strange interaction where you can use uistroke to make a gap between the borders.
^This is normal, no border
^After adding an inset border of 20 (White)
^After adding a UICorner. See how it shrunk?
^After adding a UIStroke of 20. As you can see, the UIStroke object handles the UI as if the inset border wouldn’t effect ui size. This is the same regardless of if it’s set to Border or Contextual.
Interesting conflict, and honestly a pretty cool effect.
Expected behavior
Obviously, I would expect the UICorner to totally negate the border size of the ui, since it’s overriding it.
A private message is associated with this bug report