简体   繁体   English

加载新场景时屏幕闪烁

[英]Screen flashes when loading new scene

I have a level selection menu, inside this I have buttons to load my scene levels. 我有一个级别选择菜单,在此菜单中,我有一些按钮可以加载场景级别。

I am using the next method to switch the scenes: 我正在使用下一种方法切换场景:

UnityEngine.SceneManagement.SceneManager.LoadScene();

The problem is that I have dark-gray faders in my scene and when I load the different scenes the screen flashes white. 问题是我的场景中有深灰色的推子,加载不同的场景时屏幕闪烁白色。 Instead of staying in the same dark-gray tone like I would want it. 而不是像我想要的那样保持相同的深灰色调。

I will gladly supply any further information that you need. 我很乐意提供您需要的任何进一步信息。

Does anyone know a solution? 有人知道解决方案吗?

上一场景的最后一帧与下一场景的第一帧是连续的,因此需要确保任一帧中都没有任何东西可以产生明显的不同,例如,通过调用脚本来重置诸如材料颜色之类的状态唤醒功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM