- Home /
Still react to commands while in background
Fellow programmers,
I'm currently experimenting with Unity. I'm trying to create a VERY SIMPLE program that would play a sound when key is held down. Now, the main problem is that I want it to still react to pressing buttons even when it is in background. For instance, when I press shift it plays some sound. When the window of this program is active, it plays the sound, but when I alt+tab/hide the window, It doesn't play the sound anymore when button is pressed.
Is there any way I can change this?
Thanks, Kristoff
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613121200im_/https://answers.unity.com/themes/thub/images/avi.jpg)