是否可以统一将动画介绍添加到启动画面。?
Is it possible to add animated intro to splash screen in unity.?
我正在学习 unity,我想知道...是否可以在 unity 中将小动画介绍视频或 .gif 动画添加到启动画面?如果是,那么该怎么做?我尝试使用播放器设置更改启动画面,但 .gif 动画不起作用。
答案实际上是或否,具体取决于您希望如何执行此操作。
Is it possible to add animated/intro video to splash screen in Unity from
the Player Settings?
没有。您只能从此菜单向 Unity 的启动画面系统添加图像。
Is it possible to add animated/intro video to Unity?
是的。制作一个介绍场景并使其成为从构建设置加载的第一个场景。使用 Unity 的 API 在场景加载时加载和播放介绍视频。介绍视频播放完毕后,加载您的主场景。
我知道了,只是想分享我的代码,它可能对某人有帮助。
public class PlayIntro : MonoBehaviour {
private string movie = "Logo_Intro.mov";
void Start ()
{
StartCoroutine(streamVideo(movie));
}
private IEnumerator streamVideo(string video)
{
Handheld.PlayFullScreenMovie(video, Color.black, FullScreenMovieControlMode.Hidden, FullScreenMovieScalingMode.Fill);
yield return new WaitForEndOfFrame ();
SceneManager.LoadScene ("Game");
}
}
我正在学习 unity,我想知道...是否可以在 unity 中将小动画介绍视频或 .gif 动画添加到启动画面?如果是,那么该怎么做?我尝试使用播放器设置更改启动画面,但 .gif 动画不起作用。
答案实际上是或否,具体取决于您希望如何执行此操作。
Is it possible to add animated/intro video to splash screen in Unity from the Player Settings?
没有。您只能从此菜单向 Unity 的启动画面系统添加图像。
Is it possible to add animated/intro video to Unity?
是的。制作一个介绍场景并使其成为从构建设置加载的第一个场景。使用 Unity 的
我知道了,只是想分享我的代码,它可能对某人有帮助。
public class PlayIntro : MonoBehaviour {
private string movie = "Logo_Intro.mov";
void Start ()
{
StartCoroutine(streamVideo(movie));
}
private IEnumerator streamVideo(string video)
{
Handheld.PlayFullScreenMovie(video, Color.black, FullScreenMovieControlMode.Hidden, FullScreenMovieScalingMode.Fill);
yield return new WaitForEndOfFrame ();
SceneManager.LoadScene ("Game");
}
}