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!

Screen.sleepTimeout only exists in Unity 3.4 and later.