Is there a script to make sure that the iOS device never goes into sleep mode when Unity application is running?
The below piece of code works for Android devices but not for iOS:
Screen.sleepTimeout = SleepTimeout.NeverSleep;
Is there a script to make sure that the iOS device never goes into sleep mode when Unity application is running?
The below piece of code works for Android devices but not for iOS:
Screen.sleepTimeout = SleepTimeout.NeverSleep;
In case anyone is wondering, the above does actually work on iOS. I had mine in void Start() when I load a scene in Unity and it works.