Files
3d-bxqz/Assets/Scripts/SkipUnitySplash/SkipUnitySplash.cs
2026-05-06 17:36:41 +08:00

15 lines
395 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
public class SkipUnitySplash : MonoBehaviour
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
static void OnBeforeSplash()
{
// 打包后运行时,直接停掉启动画面
SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
}
}