右键创建mediaplayer,如图。
建立一个3D GameObject->Plane,如图。
在plane上加组件apply to mesh组件,制定刚刚新建的那两个东西。
.
控制视频播放
using System;
using System.Collections;
using System.Collections.Generic;
using Leap;
using RenderHeads.Media.AVProVideo;
using UnityEngine;
using RenderHeads.Media;
using RenderHeads;
public class VideoCtrls : MonoBehaviour
{
public Animator PlaneAnimatior;//让面板出现的animator动画
public MediaPlayer _MediaPlayer;//右键指定视频的插件组件
public GameObject PlaneGameObject;//面板本身
public ParticleSystem pm;
private void OnTriggerEnter(Collider col)
{
if (col.tag=="Player")
{
Debug.Log("col");
StartCor