Unity with Alpha gallery compression distortion, unityalpha

Source: Internet
Author: User

Unity with Alpha gallery compression distortion, unityalpha
IOS Atlas compression Distortion

In the Android platform, the UI image is normal, but after it is packaged to iOS, the transparent area will be obviously distorted. After troubleshooting, it is found thatPackage Tag parameter, that is, the image packaged into the gallery. If you use the default Unity compression settingsPVRTC 4 bits for compression, at this point:

Scatter images without Gallery, with transparency, without obvious distortion; images with gallery, with transparency, transparent area distortion will be more obvious:
1. Final strategy:

For small images that need to be gallery, you can choose not to compress and set itTrue color format of RGBA 16;
For scatter images without Gallery, use the default Unity compression method for packaging, that isPVRTC 4 bits 。

2. Modification Operation:

InSelect an image in the Project windowIn the Inspector window, modify the settings as follows:

Since Unity is divided into different versions, the Free version does not compress the RGBA 32 format by default, and the Pro version uses the Compressed format by default. Therefore, you must selectOverride for iOS can take effect, directly modifyThe. meta File may not take effect.

Effect after modification:

Black borders:

. Png image import Unity andChange Texture TypeSprite (2D and UI), and then use an Image component in the UI to display the Image, Black edge appears, for example:

The solution is not difficult.Filter Mode attribute from the defaultModify BilinearPoints (no filter). After modification, the effect is as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.