- Home /
Add new function to existing Menu Item
Hello!
What I want to achieve is to detect click on existing Menu Item - for example Window/Project. I want to attach custom function to it,which won't interrupt default one.
[MenuItem("Window/Project")]
public static void Foo()
{
Debug.Log(Opening project window...");
}
Something like that. But this creates new Menu Item... Any ideas?
Comment