Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: poolts on June 12, 2014, 09:06:39 AM

Title: Bug Report: Missing Transform Handles (Unity 4.5)
Post by: poolts 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 :)
Title: Re: Bug Report: Missing Transform Handles (Unity 4.5)
Post by: ArenMook 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.
Title: Re: Bug Report: Missing Transform Handles (Unity 4.5)
Post by: bluescrn 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
Title: Re: Bug Report: Missing Transform Handles (Unity 4.5)
Post by: ChrisR 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!