Formula for Slicescale

I’m using 9-slice for an ImageLabel, and the only way to change the scaling of the 9-slice is using SliceScale. I’m trying to figure out a formula so that the SliceScale dynamically changes for different screen resolutions so the ImageLabel would appear consistent for all screens.

Anyone know a proper formula for calculating it?

You’ll need to get the ratio of the end-user’s screen by dividing the screen’s width by its height (in pixels) then use the result in the SliceScale calculation.