Hey there! I have really been wanting to know if there is a way to convert offset to scale for UiCorners, like the autoscale lite kinda thing. I have made the mistake of making all my uicorners in the offset, and I have a lot of them. So is there a ratio or formula between the offset and the scale for ui corners?
1 Like
Very much so! The scale is based on the UI element its attached to.
So if your UI AbsoluteSize is 100 px and your UICorner is at 10px that means that your scale is at 0.1.
So to put that into math.
UICornerOffset/AbsoluteSize = UICorner Scale.
The thing which makes it a bit more complicated however is that its also based on the current shortest edge.
So you need to make sure you calculate the distance of the least large axis on the AbsoluteSize.
1 Like
Thanks it worked! Maybe I should make a plugin for that sometime