ugui 播放视频并没有3d中那么简单,视频格式需要时OGV格式的,需要用这个软件Theora Converter .NET 转换,格式工厂不能转。。。。可能是我没找到
下面是代码
public MovieTexture movTexture;
public GameObject[] rawImages;
chushihua();
rawImages[0].SetActive(true);
movTexture.loop = true;
movTexture.Play();
RawImage ri = gameObject.GetComponent<RawImage>();
ri.texture = movTexture;