unity制作的手机游戏在启动时花屏的处理

  GL.Clear(false, true, Color.black);

官网解释:清除当前的渲染缓冲区。

public static void Clear(bool clearDepth,bool clearColor, Color backgroundColor,float depth = 1.0f);

clearDepth 深度缓冲区是否应该清除?
clearColor 应该清除颜色缓冲区吗?
backgroundColor 颜色,以明确的,仅用于clearColortrue
depth 清除Z缓冲区的深度,仅在clearDepthis时使用true
网上找的方法,如果有好的解决,欢迎提出来。

猜你喜欢

转载自blog.csdn.net/qq_33515628/article/details/79379187
今日推荐