I am currently trying to make a sidebar UI using a hexagonal layout, and I am using a script provided by uMathieu to read if the pixels the mouse is over are transparent. If they are, then clicking there won’t do anything since it’s not within the hexagon.
My problem is that I am using Scale-To-Fit scale mode on these background images. It is not taking into account that the background image is scaled, and so it will read the pixels as if it were Stretch-To-Fit. I don’t see a way to get the amount the image is scaled by, any ideas on how to get around this?
Here is an example of one of the hexagonal buttons/background images.