Hi, I’m trying to make an application which is very focused on the use of the videos. For example when the user reaches a specific place or clicks a button the specific movie will play in full screen. The way i was trying to get around this was by making the movie texture as part of the GUI, but i have problems with this in that i can get it to appear “All” the time, or not at all, i cant seem to get it working properly for after the button is pressed the movie will appear and then disappear when finished (once i get it working this is the plan)
Snippet of code (probably of no use, just say if you need any more info) to try get the idea across.
I also tried putting the GUI.DrawTexture within the movie.isPlaying if statement but then the texture never gets drawn.
You are calling GUI.DrawTexture unconditionally (ie, not inside an “if” statement) so it will always show the movie texture even if it is not playing. You probably want to put it inside its own “if” statement, something like:-
Hiya, thanks for your reply, I may have not made it clear enough but I mentioned that I had put the Draw function within the loop and even when the loop is true, it does not draw. I have tested this by putting other things in the loop with the draw function and they all respond correctly but the draw function does not.