Cover by Matt Smith, Chico Queiroz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

Loading and playing external movie files

In this recipe, we will load an external image video and play it on the screen. Also, we will have the option of loading it from two different sources: the Web or Unity Default Resources (a library created once the game is built).

Getting ready

For this recipe, you'll need a video clip in OGG/Theora format. We have provided one, named videoTexture.theora.ogg in the 0423_11_05 folder. If you wish to use your own video files,you might need a converter. In this case, a good option is Miro Video Converter, available at www.mirovideoconverter.com.

Also, if you want to load the video clip from the Web, you will need access to a provider where you can host the files. In this case, please note that the image file ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required