Unity3D脚本:Unity3D载入外部视频脚本.docxVIP

  • 8
  • 0
  • 约1.23千字
  • 约 2页
  • 2019-07-14 发布于湖北
  • 举报

Unity3D脚本:Unity3D载入外部视频脚本.docx

Unity3D脚本:Unity3D载入外部视频脚本 Posted on 2013年01月26日 by U3d / \o 查看 Unity3D脚本/插件 中的全部文章 Unity3D脚本/插件/被围观 288 次 public var url=file:///c:/sample.ogg; function Start () { url=file:/// + Application.dataPath + /video/sample.ogg; print(url); // Start download var www = new WWW(url); // Make sure the movie is ready to start before we start playing var movieTexture = www.movie; print(downloading...); while (!movieTexture.isReadyToPlay) { print(gress); yield; } print(download complete); print(www.url); // Initialize gui texture to be 1:1 resolution centered on screen guiTexture.texture = movieTexture;

文档评论(0)

1亿VIP精品文档

相关文档