- Home /
Any way to get texture scale or original resolution in build
Hey there! Is there anyway to either: 1) Get original width and height of the texture (no UnityEditor, since I need this in build) 2) Get the scale (X/Y) of the texture (since it transforms to power of two - currWidth / originalWidth)
I am getting pictures put by user in StreamingAssets and I want to tile the texture loaded in order to preserve original aspect ratio (no stretching in x or y).
Cheers.
Comment