Question by
John00100 · Aug 31, 2015 at 07:18 PM ·
movie texture
Change scene when video ends
I'm new to coding and Unity, and im trying to make a very simple code that will switch to a different scene when a video is finished playing. I've searched the forums and have seen various solutions, but due to my limited knowledge, I am having trouble implementing them. Here is the code I have currently, any suggestions on what to do would be appreciated:
using UnityEngine;
using System.Collections;
public class scene2 : MonoBehaviour {
// Use this for initialization
void Start () {
MovieTexture movie = GetComponent<Renderer>().material.mainTexture as MovieTexture;
movie.Play ();
}
// Update is called once per frame
void Update () {
}
}
Comment
Your answer
Follow this Question
Related Questions
Problem with replaying movie textures 0 Answers
Count Each Time Movie Clip Plays on a loop 1 Answer
About movie texture 0 Answers
Having 4 movie textures running simultaneously full screen 0 Answers