- Home /
Image in GUI warped
Howdy,
I have some raw images placed inside a panel on my canvas that are warping in the final build and I can't figure how to resolve it. Am I missing something obvious?
Properties:
Output in build (WebGL):
Thanks!
Answer by ryanmillerca · Nov 16, 2017 at 12:38 AM
Look at the top left of your first screenshot - see that Box with the arrows pointing out from center labelled "stretch"? That's your rect transform stretching to fit the container it's in. That's likely the culprit. Change the rect transform mode to middle / center to stop it from stretching your element and then click on the Raw Image "Set Native Size" to set your image back to it's native size.
Your answer
Follow this Question
Related Questions
How do I create an Image of certain size in the middle of the screen with stretching border images 0 Answers
Panels and CanvasGroup in UI management 0 Answers
UI Panels are not positioning themselves according to screen size 0 Answers
Tutorials for 2D game GUI 2 Answers
[Solved]Why my Unity Button's Positions are different. 1 Answer