- Home /
Can I keep the computer awake using Unity WebGl?
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!
Your answer
Follow this Question
Related Questions
Problem on full screen web-gl virtual joystic 0 Answers
Creating an app for mobile and browsers 1 Answer
How to use CursorLockMode in webGL 0 Answers
App gets stuck on WebGL 0 Answers
Set aspect ratio in fullscreen WebGL? 2 Answers