Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SleepTimeout

Namespace: UnityEngine

Description

Constants for special values of Screen.sleepTimeout.

Use them to specify something other than a fixed amount of seconds before dimming the screen.

Static Variables

NeverSleep Prevent screen dimming.
SystemSetting Set the sleep timeout to whatever user has specified in the system settings.