I understand that, however UI2DSprite has a handy checkbox in the inspector called Fixed Aspect Ratio, which seems to maintain the aspect ratio of the sprite after you adjust the size of it. Unless I'm missing something, there doesn't seem to be any easy way to maintain the aspect ratio of a sprite that is not anchored in code (well mFixedAspect does it, but it's hidden by default).