I am currently running into a frustrating problem on unity. I’m working on a jigsaw puzzle game and I let the user import an image of their choosing using this amazing plugin by yasirkula.
I get a texture2D from this that I will this cut up using a script. The issue comes when I need to check the orientation of the image (as in landscape or portrait). I thought I could just check the width and height and use whichever is longer to determine the orientation but unfortunately unity only make the largest value the width and the smallest the height.
Could someone maybe point me in the right direction to figure out the orientation of an image even if its just finding the length in the x and y direction.
Thanks