Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: DrLoomis on April 17, 2013, 09:39:58 PM

Title: Can't move scene view w/ NGUI element selected
Post by: DrLoomis on April 17, 2013, 09:39:58 PM
Unity 3.5.7f6, NGUI 2.5.1: when I have an NGUI element selected in the Hierarchy window, I can't pan around or move in the scene view.

If I deselect it, or select any non-NGUI object, I can pan around just fine.

Has anyone else seen this?
Title: Re: Can't move scene view w/ NGUI element selected
Post by: ArenMook on April 18, 2013, 05:57:58 PM
Switch away from the move tool to something else, and you will be able to.
Title: Re: Can't move scene view w/ NGUI element selected
Post by: DrLoomis on April 18, 2013, 06:01:55 PM
That doesn't have any effect for me. Further clarification: I can move around fine if I have a panel selected, but I can't move if I have a label or sprite selected.

That might be true of other non-panel objects as well, but I only have labels and sprites in my scene at the moment.
Title: Re: Can't move scene view w/ NGUI element selected
Post by: ArenMook on April 18, 2013, 07:20:36 PM
Using the middle mouse button to pan works just fine. Using the Pan tool panning works fine as well. What are you using?
Title: Re: Can't move scene view w/ NGUI element selected
Post by: DrLoomis on April 18, 2013, 07:25:48 PM
I use right-click + mouse to look around and right-click + WASD to pan the camera. Neither work when a label or sprite is selected.

It wasn't like this on 2.3.6 or any earlier version; I only got this bug after upgrading to 2.5.1.

OS X 10.8.3.
Title: Re: Can't move scene view w/ NGUI element selected
Post by: ArenMook on April 18, 2013, 07:29:15 PM
Right button + mouse orbits the camera. Orbiting is something that's generally not desireable in a 2D UI system. Panning = middle mouse button.

If you want to go back to 2.3.6's behaviour, removing the draggable handles and restoring your right mouse button, comment out UIWidgetInspector's OnSceneGUI function.
Title: Re: Can't move scene view w/ NGUI element selected
Post by: DrLoomis on April 18, 2013, 07:33:28 PM
Right button + mouse orbits the camera. Orbiting is something that's generally not desireable in a 2D UI system. Panning = middle mouse button.
For me, right-click + mouse just looks left and right in the scene. Why would it be bad to look left and right while working on a UI element? It doesn't move it, it just lets you look at the object from a different angle.