Author Topic: rotate and scale tools dont work with NGUI 2.5.0  (Read 10196 times)

mindlube

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 46
    • View Profile
rotate and scale tools dont work with NGUI 2.5.0
« on: March 25, 2013, 03:35:28 PM »
edit: 2.3.4 does not exhibit this problem


I dont know what introduced this bug, NGUI updates or Unity updates but it's pretty severe:

- Find an NGUI widget, e.g. in the example scenes
- select it in the scene view
- hit w for move tool, that works fine
- hit e for rotate tool *does not work* acts as move tool
- hit r for scale tool *does not work* also acts as move tool.

I have only noticed this problem with NGUI widgets so far. Pretty much dead in the water at the moment because of this.
« Last Edit: March 25, 2013, 11:19:07 PM by mindlube »

juggernate

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 21
    • View Profile
Re: rotate and scale tools dont work with NGUI 2.5.0 + Unity 4.1.0f4
« Reply #1 on: March 25, 2013, 09:24:26 PM »
Same problems with NGUI 2.5.0 in Unity 3.5.7 Mac. And sometimes the translation manipulators make it rotate.

Also, when I have a sprite selected and see the green manipulators, I can no longer alt+RMB to zoom. Select something else and it works fine again.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: rotate and scale tools dont work with NGUI 2.5.0 + Unity 4.1.0f4
« Reply #2 on: March 25, 2013, 10:54:02 PM »
Do you not see the knobs around the widget selection? Try dragging them and pay close attention to the mouse cursor. It tells you what will happen -- move, rotate, or scale.

mindlube

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 46
    • View Profile
Re: rotate and scale tools dont work with NGUI 2.5.0 + Unity 4.1.0f4
« Reply #3 on: March 25, 2013, 11:14:04 PM »
Do you not see the knobs around the widget selection? Try dragging them and pay close attention to the mouse cursor. It tells you what will happen -- move, rotate, or scale.
Umm OK I looked closer again, and now I do see the mouse cursor changes to allow move, rotate and scale. Seems to work. *But* there are a number of problems with this feature.

- the standard Unity rotate and scale transform tools are broken now for your widgets. for those used to just hitting w-e-r keys to translate, rotate, scale, this is going to be a big slowdown. This really seems like a bug to me.
- can't see anyway constrain your scale tool to uniform scaling (maintain aspect ratio of a sprite)
- if you look at any UIRoot hierarchy, e.g. your example scenes, at least half of the objects are standard gameobjects, containers and transforms, not ngui widgets. So this is inconsistent.
- what need is this solving?

juggernate

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 21
    • View Profile
Re: rotate and scale tools dont work with NGUI 2.5.0
« Reply #4 on: March 26, 2013, 10:02:54 AM »
I agree with mindlube. This made NGUI harder to use for me as it breaks the regular Unity transform manipulators. Now to do a uniform scale I have to add a group object above the sprite and scale that.

I'm on a mac and I don't see any cursor changes working with the green knob things.

Plus the alt+right mouse button zoom breaking is another big slowdown.

mindlube

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 46
    • View Profile
Re: rotate and scale tools dont work with NGUI 2.5.0
« Reply #5 on: March 26, 2013, 12:26:49 PM »
for what it's worth, I am using Unity 4.1.2 on Mac and the mouse cursor changes if I hover over the green dots around a ngui widget.

juggernate

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 21
    • View Profile
Re: rotate and scale tools dont work with NGUI 2.5.0
« Reply #6 on: March 26, 2013, 01:31:53 PM »
Ok, maybe the cursor change is a unity version thing, I'm on 3.5.7. Or maybe a retina thing with different icon sets?

mindlube

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 46
    • View Profile
Re: rotate and scale tools dont work with NGUI 2.5.0
« Reply #7 on: March 26, 2013, 01:39:43 PM »
Could be! I dont have a retina display so cant verify.  Here is a little workaround I discovered for the tool selection:

- duplicate a widget
- select the 2 or more widgets; use unity's multiple selection **
- now use unity translate/rotate/scale tools
- delete the extra widget
( the new ngui transform tool  doesnt support multiselect, it looks like )

** cant remember - this might be a Unity 4.x feature


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: rotate and scale tools dont work with NGUI 2.5.0
« Reply #8 on: March 26, 2013, 02:00:55 PM »
I will just make the new gizmos optional when I return from GDC.

mindlube

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 46
    • View Profile
Re: rotate and scale tools dont work with NGUI 2.5.0
« Reply #9 on: March 26, 2013, 02:11:05 PM »
Thanks! & have a great time at GDC  ;D

mindlube

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 46
    • View Profile
Re: rotate and scale tools dont work with NGUI 2.5.0
« Reply #10 on: May 08, 2013, 11:58:42 AM »
I will just make the new gizmos optional when I return from GDC.
Thank you for doing this by the way- I greatly appreciate being able to toggle off this feature.

NGUI menu | toggle draggable handles <--- if anyone is wondering how