Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

MovieTexture getting null reference

$
0
0
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.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>