Loading and Unloading a 360° video
- Tutorial
- Beginners
- 52 Minutes
1.Overview
When you use a 360° video in a Unity project, it is important to manage the memory the video uses. Unity’s Addressables system provides a solution for managing memory for 360° videos that is easier than using the AssetBundles API.
With the Addressables system, you identify assets as addressable and load them into memory using an address. The Addressables API helps you manage not only content at the address, but also all dependencies of that content. The system notifies you when the entire asset is ready, so your video is loaded before the content is returned
In this tutorial, you’ll use the Addressables asset system to mark a 360° Video Clip as addressable, create a video player, and then simply load clips into the Scene when they are needed.
2.Prepare your Project
When you use a 360° video in a Unity project, it is important to manage the memory the video uses. Unity’s Addressables system provides a solution for managing memory for 360° videos that is easier than using the AssetBundles API.
With the Addressables system, you identify assets as addressable and load them into memory using an address. The Addressables API helps you manage not only content at the address, but also all dependencies of that content. The system notifies you when the entire asset is ready, so your video is loaded before the content is returned
In this tutorial, you’ll use the Addressables asset system to mark a 360° Video Clip as addressable, create a video player, and then simply load clips into the Scene when they are needed.