Search Unity

Detect when application is in background

Discussion in 'Editor & General Support' started by smarcus, May 16, 2010.

  1. smarcus

    smarcus

    Joined:
    Sep 18, 2007
    Posts:
    113
    I know you can control the behavior of the application when it loses focus in broad strokes (ie: does it pause or not)... but is there a way for an application which does run in the background to determine if it has lost focus?

    For example: I am fine with my game running in the background, but I don't want to track mouse movement.