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.

对于不是来自web的流的电影,这个值是返回true。

// Plays a movie over a texture from a stream
//从一个网页流在纹理上播放一个影片
var wwwData : WWW;
var url : String = "";

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

function Update () {
	var m : MovieTexture = guiTexture.texture as MovieTexture;
	if (!m.isPlaying && m.isReadyToPlay)
		m.Play ();
}
Page last updated: 2011-3-18