using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; [RequireComponent(typeof(RawImage))] public class LocalRawImage : MonoBehaviour { public DShowClip filename; MoviePlayerBase movie; private void Start() { var raw_image = GetComponent(); if (movie == null) { movie = MoviePlayerPool.Singleton.GetMoviePlayer(filename); raw_image.texture = movie.Texture; raw_image.color = Color.white; } } }