Question by
Jeffro826 · Jul 06, 2016 at 08:32 PM ·
movietexturemain menu
Texture Over MovieTexture?
I am currently developing a trading card game through Unity. I want to use a MovieTexture to implement an animated backdrop, but I am currently having issues getting the main menu to show up.
using UnityEngine;
using System.Collections;
public class IntroClip : MonoBehaviour {
public MovieTexture myMovie;
public Texture MainMenu;
// Use this for initialization
void Start () {
myMovie.loop = true;
myMovie.Play();
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), myMovie);
GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), MainMenu);
}
}
Attached above is the code I currently have. Is there a certain asset that I should attach the script to? Did I draw the GUI incorrectly? I can get the video playing, but not the MainMenu texture.
Comment
Your answer
Follow this Question
Related Questions
I can't upload some quind of movies 0 Answers
How to start a video texture on an object when one on a separate object ends? 0 Answers
Unity 5 NullReferenceException after loading new scene. 1 Answer
MovieTexture Can't Compile in Android 1 Answer
Movie not playing on Android device while sound plays. 0 Answers