Author Topic: builtin unity "move" gizmo/widget won't appear on ngui objects any more?  (Read 6195 times)

RogueRocket

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
seems to have started occurring w/ 3.6.x possibly

if i turn "off" NGUI handles, no move widget appears at all (the axis move thingie).  It shows on anything w/out an ngui behaviour on it..  only way to move ngui objects is w/ the ngui handles... but then for things that don't have handles like a UIGrid, i have no visual way to position it at all.

I don't see any other posts about this, this makes me wonder if it's something wrong with our setup

Unity 4.5 and 4.3.4 both showing the issue.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Unity 4.5 lets users hide gizmos, and since they serve no purpose with NGUI's touch-based manipulation in place, I chose to hide them. The grid's editor derives from a container, meaning you can move it around like you can with a widget (provided it actually has content, of course).

dhalka

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Quote
...hide gizmos, and since they serve no purpose with NGUI's touch-based manipulation...

Hi Aren! - I'm afraid I strongly disagree. I, and I assume others, constantly use the handles to move widgets along a constrained axis. I know you can technically do this by dragging the inspector transform field, but that's neither ideal, nor the workflow we've developed. Like OP, I also have UIgrids that get populated dynamically (meaning they have no contents in the prefab/editor scene).  Now, not only is it impossible for me to manipulate the position of these grids in the scene window, but it is ALSO impossible even to visualize their positions... even when making changes using the inspector transform sliders! Sadly, changes like this can cost teams time & money.

Sidebar: Autodesk, when it changed its transform gizmo schemes, provided an option for users to keep the legacy presentation/functionality in order to accommodate its established user-base's workflow.

Anyone have a handle on where to re-enable the transform gizmo for NGUI objects?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
When you have a grid, you get an outline of the grid and you can position it just by pressing on the rectangle and moving it around. Same with a widget. The pivot point (and thus the transform position) of a widget is always a different color than other dots (unless it's center -- in which case it's hidden). Adjusting widgets by the transform gizmo instead of using the rectangle means your widgets won't be pixel-perfect due to floating point values.

Also note that the transform gizmo is only hidden when you select the "move" tool.

But if you want to use the transform gizmo instead... go for it. You can turn off handles via the NGUI -> Options menu.