We wait for this to finish through the Unity coroutine. In lines 14-15, we load the audio clip through the indirect asset reference. The important piece of the cake happens within the PlayVideoInternal function. public class AddressablesVideoPlayer : MonoBehaviour That should be it to play a video the classic way.
#UNITY 2019 NETWORKING DOWNLOAD#
However, you can download the rest of the videos in the background. The game introduction cinematic is an excellent example. These videos usually come together with the original game package. The primary or mandatory videos are those for which users must wait before proceeding in the game. So it helps to split video into two categories: primary and secondary videos. You don’t need them all to show your main menu, right? You play most of them at later stages of the game. You see, you don’t have to force users to wait to download all videos. The issue is when you block user progression due to huge download times. The thing is, downloading a game as heavy as that takes many hours. And videos take a significant portion of that pie. It is not uncommon to see 100GB+ games nowadays. Stacking multiple of those will give you gigabytes of pain. Having a long cinematic with high bitrate and 4k resolution can very well add 350MB per minute. Videos are heavy regarding storage space. Let’s see how we can apply Unity Addressables for Videos. Unity has prepared some surprises for us so we don’t have to choose between low installation times or high-quality cinematics anymore. Luckily for us, those are good times to add videos in our games. Who doesn’t enjoy action-packed cinematics?Īnd even your users, if it means they must wait till the next day to play your game. No problem, Unity Addressables for Videos comes to the rescue. Would you enjoy staring at a progress bar for 12 hours? Your players won’t. They’ll skyrocket your game installation times by hours. They’ll milk till the last bit of your players’ drives. Videos are crucial elements for high caliber games, but they feed on storage space.