版本:Unity 6 (6000.0)
语言中文(简体)
  • C#

SplashScreen.Draw

提出修改建议

提交成功!

感谢你帮助我们改进 Unity 文档的质量。虽然我们无法接受所有提交,但我们确实会阅读用户提出的每条建议修改,并在适用时进行更新。

关闭

提交失败

由于某种原因,无法提交你建议的修改。请在几分钟后<a>重试</a>。感谢你花时间帮助我们改进 Unity 文档的质量。

关闭

取消

声明

public static void Draw();

描述

立即绘制启动画。确保在你开始调用此方法之前,已调用 SplashScreen.Begin

using System.Collections;
using UnityEngine;
using UnityEngine.Rendering;

// This example shows how you could draw the splash screen at the start of a Scene. This is a good way to integrate the splash screen with your own or add extras such as Audio. public class SplashScreenExample : MonoBehaviour { IEnumerator Start() { Debug.Log("Showing splash screen"); SplashScreen.Begin(); while (!SplashScreen.isFinished) { SplashScreen.Draw(); yield return null; } Debug.Log("Finished showing splash screen"); } }