Input.GetKeyDown(KeyCode.Print) is never true, regardless of how I press the PrintScreen button.
How do I capture a printscreen keypress in Unity?
Input.GetKeyDown(KeyCode.Print) is never true, regardless of how I press the PrintScreen button.
How do I capture a printscreen keypress in Unity?
Found the answer somewhere else. It’s broken in Unity with GetKeyDown, but you can do this:
void OnGUI()
{
if (Event.current.type == EventType.keyUp && Event.current.keyCode == KeyCode.SysReq)
// Do stuff.
}
And apparently KeyCode.SysReq and KeyCode.Print both work this way.