- Home /
Question by
KingNeil · Feb 08, 2018 at 01:00 PM ·
guinot workingmovietexturemovie
MovieTexture stops playing after first frame
I have this code:
public MovieTexture introMovie;
void Awake () {
//Plays the intro (doesn't work)
if (introMovie != null) {
introMovie.Play();
}
}
void OnGUI () {
//Draws the movie on the screen.
if (introMovie != null && introMovie.isPlaying) {
GUI.DrawTexture (new Rect (0, 0, Screen.width, Screen.height), introMovie);
}
}
When starting the scene, the movie doesn't play. I've tried logging introMovie.isPlaying
, and it only returns True
inside of the Awake ()
function.
Comment
Your answer
Follow this Question
Related Questions
How stocked the video in full screen in the background? 0 Answers
www.movie on GUI Texture in front of Camera 0 Answers
Movies on Android. Is it possible? 2 Answers
Image Effects on MovieTexture 0 Answers