Can anyone help me make my Movie Texture loop?
I have added this line of code to make it Play, but I want the texture to loop forever. Thank you!
using UnityEngine;
using System.Collections;
public class VideoController: 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 () {
}
}