The time, in seconds, that the movie takes to play back completely.
var mov: MovieTexture; var gui: GUIText; function Start() { gui.text = mov.duration.ToString(); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { public MovieTexture mov; public GUIText gui; void Start() { gui.text = mov.duration.ToString(); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): public mov as MovieTexture public gui as GUIText def Start() as void: gui.text = mov.duration.ToString()