This recipe uses the strategy of playing a 360-degree video as the panoramic Skybox material in a scene.
We can use the Lighting Environment settings to define which Material is used for our Skybox. By creating a new material called video_m, we were able to set this as the material to be used as the Skybox when the scene runs. To be used as a Skybox material, we had to set the Shader property of video_m to Skybox | Panoramic.
To play a video, we need a GameObject in the scene with a Video Player component, and we can make this play the video at runtime in a Render Texture asset file. Render Texture needs to have the same dimensions as the resolution at which we wish to play the 360-degree video – usually, we'll set this to be the same dimensions as the video, for maximum quality. So, we set the dimensions of our videoRenderTexture to 2560 x 1280.
To connect the playing video to our Skybox material, all we had to do was make the...