Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/2
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".

AspectImage

(not enough ratings)
5 users have favourite this asset
(5)
$5
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
2.1 MB
Latest version
1.0
Latest release date
Apr 15, 2021
Original Unity version
2019.4.21
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR