[NOT A BUG] Screen sleeping with game open

Platform, device and operation system
Android

What were you expecting to happen, and what actually happened
With the game open, waiting for the sleep timeout on the device causes the screen to sleep.

How often does this happen? When did it begin happening?
Always

Steps to make it happen again
Open the game, don’t touch anything, wait for the device screen to sleep

How to fix:

Somewhere in your initialization code, add

Screen.sleepTimeout = SleepTimeout.NeverSleep;

This is working as intended.

We do not intend for the game settings to override your device’s sleep settings and currently have no plans to change this.

If you have your game open but are inactive, it will continue to timeout in line with the settings on your phone.

Fair enough, thanks for letting me know.

1 Like