Author Topic: Bug Report: Missing Transform Handles (Unity 4.5)  (Read 3767 times)

poolts

  • Newbie
  • *
  • Thank You
  • -Given: 6
  • -Receive: 0
  • Posts: 33
    • View Profile
Bug Report: Missing Transform Handles (Unity 4.5)
« on: June 12, 2014, 09:06:39 AM »
Couldn't find a place to post the bug report, so I thought I'd put it here (also in case it helps anyone in the forums)

NGUIEditorTools - line 1715

  1.         static public void HideMoveTool (bool hide)
  2.         {
  3. #if !UNITY_3_5 && !UNITY_4_0 && !UNITY_4_1 && !UNITY_4_2 && !UNITY_4_3
  4.                 UnityEditor.Tools.hidden = hide && (UnityEditor.Tools.current == UnityEditor.Tool.Move) && UIWidget.showHandlesWithMoveTool;
  5. #endif
  6.         }

Should include && !UNITY_4_5 to make the transform handles appear when selecting a widget :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bug Report: Missing Transform Handles (Unity 4.5)
« Reply #1 on: June 13, 2014, 04:26:05 AM »
Why? Unity 4.5 has the ability to hide the transform gizmo, and it's pointless to show it since it does nothing anyway. You resize the widget by dragging the blue handles.

P.S. Note we're talking about resizing the widget, not scaling it. When you have the scale tool chosen, handles don't get hidden.

bluescrn

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: Bug Report: Missing Transform Handles (Unity 4.5)
« Reply #2 on: June 23, 2014, 09:06:04 AM »
Ah, this explains an issue that we had seen in 4.5 with a somewhat old version of NGUI. The move gizmos were missing entirely in 4.5, even when in 'Handles Off' mode.

That version didn't have the '&& UIWidget.showHandlesWithMoveTool' check, and adding that fixes it.

We're generally using 'Handles Off' mode, as it avoids accidental scaling of small widgets, and makes it easy to constrain movements to a single axis

ChrisR

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 33
    • View Profile
Re: Bug Report: Missing Transform Handles (Unity 4.5)
« Reply #3 on: June 24, 2014, 11:22:33 AM »
Aren: We also use "Handles" off mode exclusively, and use the Transform gizmo to constrain movement to one axis.

Bluescrn: Thanks a lot for this!