Use a video in Unity
Objective: Import a video into Unity and use that video as a background for the main menu
Firstly you will need to have a video that you want to use. Import the video into your Unity project.
Once the video is imported you will need to create a video player in in the hierarchy of the scene.
Once you have a video player in the scene you can drop in the video that was imported earlier into the slot available on the player.
The next thing you need to do is to create a render texture from the video file. Left-click the video and then right-click and create -> render texture.
Now, click on the render texture and make sure to set the size to that of the video that you will be playing. In my case that is the size below for HD.
Now, click on the video player in the hierarchy and the drag in the new render texture to the available slot.
There is one last thing to do and that is to create -> Raw image. Now, make sure to stretch the image across the whole screen if that is what your aiming for. If you’re making it in a panel, then adjust the size to your needs. The last part is to drag in the render texture into the slot on the raw image.
Now press play and you should now see your video playing.