Unity 5.6之后又VideoPlayer控件可以使用,用于视频播放。
先引用 using UnityEngine.Video; public VideoPlayer player;//在gameobject上贴个VideoPlayer脚本,然后赋值在这个脚本上面。 player.frame = (long)player.frameCount; player.Pause();