Hello,
I would like to have a video playing over the splash page of my game intro. Does anyone know how to do this?
Thanks
Hello,
I would like to have a video playing over the splash page of my game intro. Does anyone know how to do this?
Thanks
You can use a MovieTexture, that you can Play/Pause/Stop and draw it just like a Texture2D in the GUI.
There’s no gui video. Only way is what’s suggested by Krysalgir. Create a cube, place it on screen and make sure your camera can see it. Then apply a movie texture on it.
Some links to check out.
http://unity3d.com/support/documentation/Manual/Video%20Files.html
Thanks. That explains it pretty well. One more thing though, how do I make the GUI splash screen I have created appear as a background behind the object which now has the video texture? I only want the video to take up a portion of the screen
Thanks
GUI is always on top of the scene.
Only way (I think) is to set your different ‘layers’ in the OnGUI () function.
Maybe use a GUI Manager to setup more perixely your GUI behaviour…
OnGUI()
{
GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), m_backgroundTexture);
GUI.DrawTexture(m_moviePosition, m_movieTexture);
}
There are 2 ways to get alyers in ongui: