Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SleepTimeout

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

Definition

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

Remarks

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

Static Fields

Value

Description

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