Keycode.Print not work

Hi all
I want to print screen in game by use Prt Sc button on keyboard
this is my test C# code for test Is KeyCode.Print work

void OnGUI()
{
    if (Input.GetKeyDown(KeyCode.Print))
    {
      // do something
      MonoBehaviour.print("Hello World");
    }
}

it not work at all
can you help me pls? :slight_smile:

No signal response.

OK I use this code it work.

    if (Event.current.type == EventType.keyUp  Event.current.keyCode == KeyCode.SysReq)
    {
      MonoBehaviour.print("Hello World");
    }

thank you for all answerโ€ฆ oh it only me :stuck_out_tongue:

1 Like