文档

Unity Engine

Download Unity

Unity Engine

SleepTimeout

Constants for special values of Screen.sleepTimeout.
阅读时间1 分钟最后更新于 2 个月前

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.