Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

SleepTimeout

class in UnityEngine

Switch to Manual

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

NeverSleepPrevent screen dimming.
SystemSettingSet the sleep timeout to whatever the user has specified in the system settings.