- Home /
Question by
rustofelees · Mar 15, 2016 at 05:45 AM ·
c#menuitemhotkeys
Hotkey is preventing search in the project / hiearchy view
I currently have a hotkey set to P which allows me to parent an objects transform to another.
[MenuItem("EditorTools/Hotkeys/Parent _p", false, 10)]
static void Parent()
{
if (!ValidateLogSelectedTransformName()) return;
GameObject master = Selection.activeGameObject;
foreach(GameObject go in Selection.gameObjects)
{
if (go == master) continue;
Undo.SetTransformParent(go.transform, master.transform, "Undo parent");
}
Selection.activeObject = master;
}
However, when this code is active, I cannot use the p key to type in the hierarchy/project search fields. Has anyone else experienced this?
Comment
Yes.. I experienced this when I started using unity in Windows. I guess it's reported issue and can't be fixed. $$anonymous$$y suggestion is to use Alt + p or Shift + p ins$$anonymous$$d of p only.
I'd be as glad if someone find solution to this.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
IN-GAME Menu Items 0 Answers
Is MenuItem supported anymore? 2 Answers
Repaint EditorSettings inspector from custom menu item 1 Answer