WWW www;
//string url = "http://www.unity3d.com/webplayer/Movie/sample.ogg";
MovieTexture mov;
IEnumerator Start() {
//www = new WWW(url);
www = new WWW(@"file:///D://H.ogv");
mov = www.movie;
while (!mov.isReadyToPlay)
{
yield return mov;
}
}
注意:外部加载时视频必须为.ogv格式的