Search Unity

  1. How can our website serve you better? Give us your feedback. Take our survey and let us know.
    Dismiss Notice

Allow computer to go to sleep

Discussion in 'Scripting' started by dracolytch, Dec 26, 2019.

  1. dracolytch


    Jan 1, 2016
    Hey folks,

    I've made a screensaver for my wife using an asset on the asset store. Unfortunately, since Unity outputs games, it looks like there's likely code to prevent the computer from going to sleep. That is: When the screensaver kicks on, the computer thinks it's playing a game and no longer fully idle, and won't sleep. I'd still like to allow the computer to go into sleep mode after the OS mandated time. Any thoughts on how to do this?

  2. Lethn


    May 18, 2015

    I could very easily be wrong about this but a quick google search for me indicates that unity doesn't support this sort of thing. Other people with more knowledge on messing around with this feature will likely correct me though if they find this thread.

    There might be a plugin or an asset you could potentially use that allows you to do this though, I wouldn't be surprised.