Okay so, I'm building a Unity WebGl app that is targeted at home computers. It needs to be able to keep the computer awake indefinitely.
First thing I tried was the fullscreen option (Screen.fullscreen) but I wasn't super excited by this since Safari isn't supported, which is a big chunk of users. However, it looks like this actually doesn't work anyway. I'm using a 2015 MacBook pro that's plugged into power, and it still went to a screensaver when I was full screened.
I saw Screen.sleepTimeout, which I haven't tried yet, but the documentation says that that's only for mobile devices anyway.
Wondering if anybody has done this!
↧