Files
3d-guanwang/Assets/Scripts/SkipUnitySplash.cs
XuGaoFeng c217787c5c add codes
2026-08-25 15:15:42 +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);
}
}