- Home /
How to reset Screen.sleepTimeout to users SleepTimeout.SystemSetting?
I want to set the timeout to users system settings after the game, but SleepTimeout.SystemSetting is always "-2".
(iOS 5.1.1)
I have no solution for you, but SleepTimeout.SystemSetting should work! What version of Unity are you running? Does it work if you manually enter the desired # of seconds (so it's only .SystemSetting that's behaving badly, not SleepTimeout itself).
Are you running this in Awake()? I have had problems getting Screen.width and .height before Start(), so I wonder if perhaps you can't get that system setting if you're looking for it there.
Your answer
Follow this Question
Related Questions
Check how many inch the user drags on the screen 2 Answers
Detect Device Orientation Event 1 Answer
How to have my mobile device screen lighting on all the time 2 Answers
Detect Orientation change at runtime? 0 Answers
Device Auto-Rotation 1 Answer