Pauses playing the movie.
// Assigns a movie texture to the current transform and pauses it immediately
var movTexture : MovieTexture;
function Start () { GetComponent.<Renderer>().material.mainTexture = movTexture; movTexture.Pause(); }
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { public MovieTexture movTexture; void Start() { GetComponent<Renderer>().material.mainTexture = movTexture; movTexture.Pause(); } }
Did you find this page useful? Please give it a rating: