-
Book Overview & Buying
-
Table Of Contents
Unity Cookbook - Fifth Edition
By :
One of the advantages of scripting is that it allows us to easily work with multiple items through loops, arrays, and so on. In this recipe, we’ll work with an array of Video Clip assets and use scripting to play them back to back (one starts as soon as the previous clip finishes), illustrating the use of the isPrepared and loopPointReached events to avoid complicated loops and coroutines.
If you need video files to follow this recipe, please use the 54321TestVideo.mov file included in the 14_01 folder and the jellyfish.wmv video clip in 14_04.
The Standalone Installer website is a good online source of test videos: http://mirrors.standaloneinstaller.com/video-sample/
To play a sequence of videos using scripting, follow these steps:
54321TestVideo.mov file, and perhaps a second video clip...