- Home /
What is the update for iPhoneSettings.screenCanDarken
What is the update for iPhoneSettings.screenCanDarken. I get an error stating that this script is out dated. It doesn't seem work on my android device any more.
thanks
Answer by Richard 3 · Aug 11, 2011 at 09:21 AM
http://unity3d.com/support/documentation/ScriptReference/Screen-sleepTimeout.html
This is the most up to date solution.
Screen.sleepTimeout = 0.0f;
Thanks
Answer by Justin Warner · Mar 30, 2011 at 02:50 PM
http://unity3d.com/support/documentation/ScriptReference/iPhoneSettings.html
I'd ignore the prompt... If you put in (I think) the island demo in to 3.3, it auto updates, and says some things are outdated, but it still works, at least from what I found... Someone might have more insight, but meh.
Hope it helps a little.
Your answer
Follow this Question
Related Questions
How to have my mobile device screen lighting on all the time 2 Answers
Device Auto-Rotation 1 Answer
Ampersand in application name 4 Answers
android platform 0 Answers
About unity's API for android? 2 Answers