Documentation

Unity Engine

Unity Engine

SleepTimeout

Constants for special values of Screen.sleepTimeout.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public sealed class SleepTimeout

Remarks

Use these constants to set Screen.sleepTimeout so that the screen can't dim or sleep, or to restore the system setting.

Static Fields

Value

Description

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