using System.Collections; using System.Collections.Generic; using UnityEngine; public class NullMoviePlayer : MoviePlayerBase { Texture2D texture; private void Start () { int width = 4; int height = 4; Color[] pix = new Color[width * height]; for (int i = 0; i < pix.Length; i++) pix[i] = new Color(0, 0, 0, 1); texture = new Texture2D(width, height); texture.SetPixels(pix); texture.Apply(); texture.name = "NullTexture"; } public override Texture Texture { get { return texture; } } }