Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

UI Image truncate sprites on IOS

$
0
0
Assign a sprite created from Texture2d dynamically to UI.Image with preserve aspect (yes) and also using "Aspect Ratio Fitter" - Fit in parent mode with ratio set to sprite ratio.

IOS: Image truncates the sprites every time
IOS: RawImage(with aspect ratio fitter), SpriteRenderer display the sprite correctly
Android: Image,RawImage,SpriteRender - all display picture correctly.

Workflow:
Load a texture2d from web or gallery. Convert it to sprite:
publicstaticSpritespriteFromTexture2d...

UI Image truncate sprites on IOS

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>