Image: Preserve Aspect, but with cropping?

Currently images have a “preserve aspect” button, that makes sure that the image is not distorted and that it’s width and height are relative to the original size. This puts the image within the TransformRect of the GameObject, making sure everything is visible. This means that if the TransformRect has a different aspect ratio that some parts of the TransformRect will not display any image.

Now what I think would be really useful is a “preserve aspect” option, that instead of making sure the image is always completely visible makes sure that the image completely covers the TransformRect, cropping whatever is too big.

Basically like so:

That would, for example, be really helpful for backgrounds, where the specific display isn’t neccessary.

Is there maybe an option like this?

use aspect ratio fitter and pick best option - evenlope parent

2 Likes

Ah, cool! Thanks! There’s a lot of these fitters and adjusters that weren’t shown in the UI videos so I am discovering them as I go. Much appreciated.