I have a GameObject with RawImage component displaying an Image using Texture.
The image is squeezed to the size of the object and changing it's original ratio.
How can I tell the image in the texture to CropCenter? (like in Android for example)

Here is how I do with landscape images :
RawImageelement called "Mask" (works withUI > Imagecomponent too)UI > Maskcomponent to itRectTransform:Layout > Aspect Ratio Fitterto the Smurf image and set theAspect Modeto "Height Controls Width" and theAspect Ratioto the desired value (16/9 for example)Check the image : Parent called "Mask" and your smurf image called "Image"
For portrait images, the
RectTransformvalues :The
Aspect Modeof the child must be set to "Width Controls Heigh"