using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Video; public class play : MonoBehaviour { public GameObject screen1; public GameObject play1, stop1, pause1; private void OnMouseDown() { //顯示plane-screen screen1.SetActive(true); //設定材質material為不透明(才能顯示影片內容) screen1.GetComponent().material.color = new Color32(255, 255, 255, 255); //在plane-screen上播放影片 screen1.gameObject.GetComponent().Play(); //隱藏play物件 play1.SetActive(false); stop1.SetActive(true); pause1.SetActive(true); } }