MovieTexture.duration Manual     Reference     Scripting  
Scripting > Runtime Classes > MovieTexture
MovieTexture.duration

var duration : float

Description

The time, in seconds, that the movie takes to play back completely.

JavaScript
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

class example(MonoBehaviour):

public mov as MovieTexture

public gui as GUIText

def Start():
gui.text = mov.duration.ToString()