public void CreateVideoTexture(SceneManager scm, float width, float height, string aviFileName) { //if (videotex == null) //{ videotex = new VideoTexture(scm, width, height, aviFileName); //} }
public void CreateVideoTexture(SceneManager scm, float width, float height, string aviFileName) { if (videotex != null) { videotex.Dispose(); } videotex = new VideoTexture(scm, width, height, aviFileName); }
public void DestroyVideoTexture() { videotex.Dispose(); videotex = null; }
public VideoTextureManager() { videotex = null; }