Scale in UI

Avatar
  • updated
  • Declined

Hi! Just tried to use it in the UI. I think scale should be tweaked somehow. I can manually divide line scale by canvas scale to get properly value, but may be it worth to build in? 

Image 97

Image 95

Image 96
Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Declined

I don't think I'll be adding a built-in automatic scale transformation, and there are workarounds (such as adding a child object to the canvas that compensates for that scale, and then have all shapes under it) if you really want to do it.

the scale of parent objects should always be taken into account, regardless of if there happens to be a canvas attached to it or not. Unity designed the UI system to work in UI units, so as soon as something is a child of a canvas, then, 1 = 1 UI unit, instead of 1 meter, so I won't add this I'm afraid!

Avatar
Freya Holmér creator
  • Answer
  • Declined

I don't think I'll be adding a built-in automatic scale transformation, and there are workarounds (such as adding a child object to the canvas that compensates for that scale, and then have all shapes under it) if you really want to do it.

the scale of parent objects should always be taken into account, regardless of if there happens to be a canvas attached to it or not. Unity designed the UI system to work in UI units, so as soon as something is a child of a canvas, then, 1 = 1 UI unit, instead of 1 meter, so I won't add this I'm afraid!