Search Unity

Bug MenuItem shortcuts stop working when play mode is started

Discussion in 'Linux' started by LukaKotar, Oct 15, 2015.

  1. LukaKotar

    LukaKotar

    Joined:
    Sep 25, 2011
    Posts:
    394
    Example:
    Code (CSharp):
    1. [MenuItem("Edit/Test")]
    2. static void Test(){
    3.     Debug.Log("Test");
    4. }
    • If play-mode wasn't started yet in the current editor session, "Test" is printed to the console
    • After/during play-mode, Edit/Test does nothing
     
  2. LukaKotar

    LukaKotar

    Joined:
    Sep 25, 2011
    Posts:
    394
    Update: Apparently it's not "ignored", but executes the wrong menu item. For example, sometimes my project window will come into focus instead of running the function it was supposed to.