One of the advantages of scripting is that it allows us to easily work with multiple items through loops and 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.
Using scripting to play a sequence of videos back-to-back
Getting ready
If you need video files in order to follow this recipe, please use the videoTexture.mov file included in the 13_01 folder.
NOTE: The Standalone Installer website provides a good online source of test videos: http://standaloneinstaller.com/blog/big-list-of-sample...