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

var isReadyToPlay : bool

Description

If the movie is downloading from a web site, this returns if enough data has been downloaded so playback should be able to start without interruptions.

For movies not associated with a web stream, this value always returns true.

function Start () {
www = new WWW (url);
guiTexture.texture = www.movie;
}

function Update () {
if (!guiTexture.texture.isPlaying && guiTexture.texture.isReadyToPlay)
guiTexture.texture.Play ();
}