You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
633 B

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;
}
}
}