- Home /
Keep aspect ratio of the SVG Image in Canvas
Hello,
I'm making a interface using SVG images as buttons and icons, but the problem is that I can't found any option (like in a Image) to keep the aspect ratio.
There's any way to do this? If not is possible, it's know if Unity's team will deploy this functionality for SVG images?
Thanks and greetings!
I'm using SVGImage component to show the svg file in the canvas.
Answer by gaolei_nls · Jan 04, 2021 at 11:40 AM
There is a "Preserve Aspect" option in the SVGImage component. Just select the checkbox and it's all set.
Your answer
Follow this Question
Related Questions
New UI Button: Have sprite fill entire button (overflow). 1 Answer
Fixed aspect ratio/resolution independence 1 Answer
Preserve aspect ratio of UI elements, not just image inside it. (4.6 UI system) 2 Answers
,Different aspect ratios changes distance between objects 1 Answer
Anchor doesn't affect objects inside of another object 0 Answers