Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ryder

Pages: [1]
1
NGUI 3 Support / 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. }

Pages: [1]