Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: mindlube on March 25, 2013, 03:35:28 PM

Title: rotate and scale tools dont work with NGUI 2.5.0
Post by: mindlube 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.
Title: Re: rotate and scale tools dont work with NGUI 2.5.0 + Unity 4.1.0f4
Post by: juggernate 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.
Title: Re: rotate and scale tools dont work with NGUI 2.5.0 + Unity 4.1.0f4
Post by: ArenMook 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.
Title: Re: rotate and scale tools dont work with NGUI 2.5.0 + Unity 4.1.0f4
Post by: mindlube 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?
Title: Re: rotate and scale tools dont work with NGUI 2.5.0
Post by: juggernate 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.
Title: Re: rotate and scale tools dont work with NGUI 2.5.0
Post by: mindlube 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.
Title: Re: rotate and scale tools dont work with NGUI 2.5.0
Post by: juggernate 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?
Title: Re: rotate and scale tools dont work with NGUI 2.5.0
Post by: mindlube 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

Title: Re: rotate and scale tools dont work with NGUI 2.5.0
Post by: ArenMook on March 26, 2013, 02:00:55 PM
I will just make the new gizmos optional when I return from GDC.
Title: Re: rotate and scale tools dont work with NGUI 2.5.0
Post by: mindlube on March 26, 2013, 02:11:05 PM
Thanks! & have a great time at GDC  ;D
Title: Re: rotate and scale tools dont work with NGUI 2.5.0
Post by: mindlube 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