- Home /
Mac not recognizing Screen.sleepTimeout
Hello everyone!
I just imported my Unity game from Windows to a Macbook. So far so good, but I'm getting an error on one line of my code, which is the Screen.sleepTimeout code. I mean, this is straight off the Unity website, it's nothing fancy, but my Macbook Pro says that sleepTimeout isn't a member of Screen. On my Windows computer, this is not an issue. Is there another code to keep an iPhone from going to sleep while running a longer app? Or is it necessary?
Thanks for your help!
So you mean Unity iPhone, not Unity $$anonymous$$ac? Title ang tags should reflect that to attract right answerers. You should Edit that.
Edited per suggestion. Basically Unity is telling me one thing in Windows, another on $$anonymous$$ac.
Answer by Eric5h5 · Aug 22, 2011 at 09:21 PM
Screen.sleepTimeout only exists in Unity 3.4 and later.
Thanks, I thought I had upgraded my $$anonymous$$ac but apparently not so much. :)
@Sobriquet: Please mark the answer as accepted if it helped you.
Your answer
![](https://koobas.hobune.stream/wayback/20220612183657im_/https://answers.unity.com/themes/thub/images/avi.jpg)