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 (Texture2Dimage) {
returnSprite.Create(
image,
newRect(0, 0, image.width, image.height),
newVector2(0.5f, 0.5f),
100f);
}
Assign sprite to UI.Image with “Preserve Aspect” set. Optionally one can have AspectRatioFitter as well.
Do I expect any response on bugs? I’ve filed couple of bugs with project in the past and have not seen any update on status. They are still open but both of them are fixed in 4.6.0p1.
Based on priority and backlog, do we expect it be fixed in next patch releases scheduled on Jan 8th or 15th?
This is the only blocker for my photo application. We have waited a long way for stable UI release. If we cannot release first version on ios by Feb 1st, then we have to wait again for 64-bit beta stabilization. We’ll really appreciate if you can get this bug prioritize higher is possible? Thank you