Author Topic: How to resize UISprite keeping proportion  (Read 4850 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
How to resize UISprite keeping proportion
« on: November 26, 2013, 01:13:39 PM »
How can I resize a UISprite keeping the proportion right?
Should use the Scale tool with key bindings like photoshop.
IE:
Scale tool click + Shift key = Keep proportion in resize
Scale tool click + ALT key = Use center pivot to resize
Scale tool click + CTRL key = Move just the selected pivot

At least the first two I think are really useful and you can use them together (Scale+ALT+CTRL).
Right now the Scale tool resize the gameObject, not the widget. It would be necessary another tool for this?

Anyway, there's a real way to do this?

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to resize UISprite keeping proportion
« Reply #1 on: November 26, 2013, 01:34:43 PM »
Scale tool is not used with widgets at all. Move tool is the one that's used, and you drag handles which only moves the handle you're dragging -- which based on what you wrote seems to be what click+CTRL does in Photoshop?

Shift to resize while maintaining proportions is planned, I'll likely sneak it in within a week as it has been on my plate for some time now. Alt... might be useful as well. I'll look into it at the same time as Shift.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: How to resize UISprite keeping proportion
« Reply #2 on: November 26, 2013, 01:46:26 PM »
Thanks Aren, but with CTRL you can distort the image in photoshop, probably that is impossible on NGUI.