当前位置:   article > 正文

Unity 去除开屏Logo_unity personal remove splash screen

unity personal remove splash screen

unity 官方文档

https://docs.unity3d.com/cn/2023.2/ScriptReference/Rendering.SplashScreen.StopBehavior.StopImmediate.html

实际操作的时候可以调用

[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]

在开屏加载前启用

  1. #if !UNITY_EDITOR
  2. using UnityEngine;
  3. using UnityEngine.Rendering;
  4. public class Boot
  5. {
  6. [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
  7. private static void RemoveSplashScreen()
  8. {
  9. SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
  10. }
  11. }
  12. #endif

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/91909
推荐阅读
相关标签
  

闽ICP备14008679号