BarkingMouseStudio / haste

Open-source implementation of the original quick search for Unity 3D.
MIT License
14 stars 2 forks source link

ExecuteMenuItem failed because there is no menu named 'Window/Hierarchy' #4

Open friuns2 opened 5 years ago

friuns2 commented 5 years ago

happens every time when i search for gameobject and press enter Unity3d 2018.3.12f1

ExecuteMenuItem failed because there is no menu named 'Window/Hierarchy' UnityEditor.EditorApplication:ExecuteMenuItem(String) Haste.HasteWindow:OnReturn(Event) (at Assets/Haste/Editor/HasteWindow.cs:188) Haste.HasteWindow:OnKeyDown(Event) (at Assets/Haste/Editor/HasteWindow.cs:321) Haste.HasteWindow:OnEvent(Event) (at Assets/Haste/Editor/HasteWindow.cs:353) Haste.HasteWindow:OnGUI() (at Assets/Haste/Editor/HasteWindow.cs:476) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

jimfleming commented 5 years ago

Haste activates the hierarchy tab (in case it's hidden). The menu path must have changed. The string "Window/Hierarchy" should be replaced with whichever menu path opens the hierarchy. The code for that is here: Assets/Haste/Editor/Results/HasteHierarchyResult.cs#L119

friuns2 commented 5 years ago

image ah right its moved here