How can I avoid sleep mode in android?
How can i set the screen on while my game is launching on an Android device with blueprints??
asked Jun 05 '15 at 04:50 AM in Blueprint Scripting
The only action that I could find is the "Control Screensaver" Blueprint Action, this should enable/disable the keep-screen-on functionality on android. Not totally sure if keep-screen-on also disables sleep but I think so.
The code delegates to a platform specific action. On android the following is called:
You can see that for yourself if you right click on the Control Screensaver node and use "Goto Code Definition". Follow the source until you land in the AndroidMisc.cpp file. There, find the method
I don't know if its is possible to modify the first loading of the game in any way by blueprint. You could change the source to call the ControlScreensaver/KeepScreenOn method on the first possible occasion.
Follow this question
Once you sign in you will be able to subscribe for any updates here