There must be something i'm missing?
MovieTex = (MovieTexture)Resources.Load(Application.streamingAssetsPath + RC.MovieTex, typeof(MovieTexture));
if (MovieTex.isReadyToPlay && !MovieTex.isPlaying){
MovieTex.Play();
}
I've been trying to set MovieTex to an OnGUI button as a texture.
At first I was getting a black box with no video playing but now it's become a null reference exception.
the error calls null at the beginning of the if statement.
I'm *probably* using it worng.
If i missed any details let me know.
↧