Starts playing the movie.
// Assigns a movie texture to the current material and plays it. var movTexture : MovieTexture; function Start () { renderer.material.mainTexture = movTexture; movTexture.Play(); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { public MovieTexture movTexture; void Start() { renderer.material.mainTexture = movTexture; movTexture.Play(); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): public movTexture as MovieTexture def Start() as void: renderer.material.mainTexture = movTexture movTexture.Play()