Unity 跳过启动动画

using UnityEngine;
using UnityEngine.Rendering;


public class Test : MonoBehaviour
{

[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
    private static void BeforeSplashScreen()
    {
        System.Threading.Tasks.Task.Run(Asyncskip);
    }
    private static void Asyncskip()
    {
        SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
    }
}

 

在任意脚本里加入即可
posted @ 2024-01-06 21:52  减肥的程序  阅读(188)  评论(0)    收藏  举报