禁止屏幕睡眠

作者:追风剑情 发布于:2019-5-28 10:42 分类:Unity3d

private void Awake()
{
        //防止屏幕变暗
        Screen.sleepTimeout = SleepTimeout.NeverSleep;
        //用系统设置
        //Screen.sleepTimeout = SleepTimeout.SystemSetting;
 }

标签: Unity3d

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号