In the preceding recipe, the movie has time to prepare since the game waits until we press the jump/Spacebar key. If we are using scripting to set up a video player for a video clip, we need to do some initial work before the video is ready to play. Unity provides the prepareCompleted event for this, which allows us to register a method to be invoked once a VideoPlayer is ready to play.





















































