unity 官方文档
实际操作的时候可以调用
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
在开屏加载前启用
#if !UNITY_EDITOR
using UnityEngine;
using UnityEngine.Rendering;
public class Boot
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
private static void RemoveSplashScreen()
{
SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
}
}
#endif