screen.sleeptimeout code example
Example: screen.sleeptimeout
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// Disable screen dimming
Screen.sleepTimeout = SleepTimeout.NeverSleep;
}
}
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// Disable screen dimming
Screen.sleepTimeout = SleepTimeout.NeverSleep;
}
}