为什么在使用Time.timeScale进行减速效果时,它会将分辨率更改为全屏?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了为什么在使用Time.timeScale进行减速效果时,它会将分辨率更改为全屏?相关的知识,希望对你有一定的参考价值。

该脚本附加到空GameObject:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SlowDown : MonoBehaviour
{
    [Range(0,0.25f)]
    public float isTime = 0.25f;

    private void Update()
    {
        Time.timeScale = isTime;
    }
}

一旦运行游戏,它就会变慢,但也会全屏显示:

Full screen while slow down effect

答案

It isn't. You have this button toggled on:

Maximize on play button

以上是关于为什么在使用Time.timeScale进行减速效果时,它会将分辨率更改为全屏?的主要内容,如果未能解决你的问题,请参考以下文章