将脚本丢到Asset目录下 打包出来即可
代码
#if !UNITY_EDITOR
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Scripting;
[Preserve]
public class SkipUnityLogo
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
private static void BeforeSplashScreen()
{
#if UNITY_WEBGL
Application.focusChanged += Application_focusChanged;
#else
//下载附件
#endif
}
#if UNITY_WEBGL
private static void Application_focusChanged(bool obj)
{
Application.focusChanged -= Application_focusChanged;
}
#else
//下载附件
#endif
}
#endif
完整脚本下载
SkipUnityLogo.cs文章来源地址https://www.toymoban.com/news/detail-601237.html
文章来源:https://www.toymoban.com/news/detail-601237.html
到了这里,关于Unity 去Unity Log 去Splash图 非正式版也可以的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!