Author Topic: Can't move scene view w/ NGUI element selected  (Read 6590 times)

DrLoomis

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
    • View Profile
Can't move scene view w/ NGUI element selected
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't move scene view w/ NGUI element selected
« Reply #1 on: April 18, 2013, 05:57:58 PM »
Switch away from the move tool to something else, and you will be able to.

DrLoomis

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
    • View Profile
Re: Can't move scene view w/ NGUI element selected
« Reply #2 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't move scene view w/ NGUI element selected
« Reply #3 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?

DrLoomis

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
    • View Profile
Re: Can't move scene view w/ NGUI element selected
« Reply #4 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't move scene view w/ NGUI element selected
« Reply #5 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.

DrLoomis

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 35
    • View Profile
Re: Can't move scene view w/ NGUI element selected
« Reply #6 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.