• Image
  • Current Version: 1.0: 2021-04-15T13:01:13Z
  • First Published: 2021-04-15T13:01:13Z
  • Size: 2181488
  • Supported Unity Versions: 2019.4.21
tools sprite-management

AspectImage

No rating !(1 Vote)
$4.99 $4.99

AspectImage is an Image class that inherits from the Image class for Canvas and can set the aspect ratio.

The following three types can be specified with AspectImage.

1. Scale To Fill
Sprite is stretched to the same size as RectTransform and displayed. The aspect ratio will not be maintained.

2. Aspect Fit
Maintains the aspect ratio and draws with the maximum size that does not go out of the drawing range of RectTransform.

3. Aspect Fill
Maintains the aspect ratio and draws the image with the minimum size within the RectTransform's drawing range.

Since it inherits from Image, it also works with Mask, Shadow, Material, and other functions available in Image.

It can be generated in the same way as the regular Image class by right-clicking in the Hierarchy and selecting "UI > AspectImage".


Add to cart
This site contains affiliate links, which means that we can receive a commission if you click on a link and buy something that we have recommended.
Although clicking on these links will not cost you anything, they will help us finance our development projects while recommending good products!