If anyone else stumbles upon this in the future the issue is, as eric tried to point out 9 years ago, that texture.width/height returns the width/height of the texture after unity converts it to a power of 2. So if you’re working with the pixel values of the texture it won’t return the values your expecting. If you’re still looking for an answer to this might I direct you towards https://forum.unity.com/threads/getting-original-size-of-texture-asset-in-pixels.165295/