Here is a video walkthrough of setting up panoramic video: https://drive.google.com/open?id=10yaXlz0fnl7mybKmahCPCK9YVS9dR-CY

Here is a video walkthrough of setting up basic playback control UI (play, pause, skip, scene menu, home screen): https://drive.google.com/open?id=1pzXWVThzB1BgmO9ShsKYuhjGC1c3tbjx

Basics of Video in Unity: "To use video in Unity, import Video Clips and configure them using the Video Player component. The system allows you to feed video footage directly into the Texture parameter of any component that has one. Unity then plays the Video on that Texture at run time."

Example Video Player Component.

Supported Video Files: "You can import many different formats of video file into Unity. Unity stores imported video files as VideoClip assets.
For most plaftforms, H.264 (typically in a .mp4, .m4v, or .mov format) is the optimal supported video codec because it offers the best cross-platform compatibility. Linux is the notable exception."

Setting up 360 Video: Traditionally, 360 video was implemented in Unity by projecting an equirectangular video onto the interior texture of a sphere. The sphere was scaled to encapsulate the VR immersant. This method is still implementable and may be desirable for scenes with multiple screens and physical navigation through and around them (tutorial below).
However, Unity's new "panoramic video" feature allows you to easily set up 360 video and "Reduce Scene complexity in VR by including a pre-rendered backdrop video instead of real geometry." Basically, you can now set your 360 video to play as the skybox of your scene.
"This page describes the following steps to display any panoramic video in the Editor:
1. Set up a Video Player to play the video source to a Render Texture.
2. Set up a Skybox Material that receives the Render Texture.
3. Set the Scene to use the Skybox Material."
* Note: The link above also includes specific instructions on working with 3D (stereoscopic) panoramic video.
* Note: For instructions on setting up a VR (or "XR") Camera Rig, see "Module 1: Setting up the XR Interaction Toolkit" under the Unity VR Modules section on this site.
* Note: For proper VR functionality in Unity, "Turn on Virtual Reality Support in the Player settings (menu: Edit > Project Settings, then select the Player category, and open the XR Settings panel), especially if your source video has stereo content."

Turn on Virtual Reality Support in Player Settings.

Back to Top