(一)软件操作在平面上显示视频播放
1.创建渲染器纹理
2.创建平面
3.在平面上添加Video player
4.视频拖拽到Video player
5.渲染模式选择渲染器纹理
6.把纹理拖到目标纹理上
7.把纹理拖到平面上就可以了 然后运行项目
8.结果
(二)原始图像展示在场景中
1.创建一个原始图像
2.渲染纹理拖到上
(二)脚本操作视频播放
using UnityEngine;
using UnityEngine.Video;
public class video : MonoBehaviour
{// Start is called once before the first execution of Update after the MonoBehaviour is createdprivate VideoPlayer player;void Start(){player = GetComponent<VideoPlayer>();// 播放player.Play();}// Update is called once per framevoid Update(){if (Input.GetButtonDown(0)){}
}