Author Topic: Unity Move Tool is hidden when Handles are Off  (Read 4410 times)

Ryder

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Unity Move Tool is hidden when Handles are Off
« on: May 27, 2014, 07:12:35 PM »
So in Unity 4.5+ the Unity Move Tool is hidden when a UIWidget is selected. This is great when the handles are On so that the Handles and Move tools don't fight each other but when the Handles are Off you get nothing. It feels like you should get some tool in the Editor at all times when a Widget is selected.

My fix in NGUIEditorTools.cs is to add a check for UIWidget.showHandlesWithMoveTool.

  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. }

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity Move Tool is hidden when Handles are Off
« Reply #1 on: May 28, 2014, 05:46:44 AM »
Makes sense. I'll make the change.