Supported codecs for transparent videos (per-pixel alpha)
Set up transparent videos in Unity
Import and prepare per-pixel transparent videos for use with Unity and edit global transparency levels of your videos.
You can control the transparency of an entire video (global alpha), or, with certain video formats, you can use different transparency levels for each pixel (per-pixel alpha). This information covers how to prepare and use these videos in Unity.
For more information about the per-pixel alpha and global alpha transparency types, refer to Introduction to video transparency support.
Change your entire video’s transparency (global alpha)
To change the level of transparency for your entire video’s image in Unity:
- Create a Video Player (Add (+) > Video > Video Player).
- In the Video Player Inspector window, set Render Mode to Camera Near Plane or Camera Far Plane.
- Change Alpha to your preferred value.
- Set to 0 for full transparency (the video isn’t visible).
- Set to 1 for full visibility of the video.
- Set to any value between 0 and 1 for partial transparency.
As a result, your video appears with your preferred transparency level.
Change the transparency of pixels in your video (per-pixel alpha)
You can’t control per-pixel transparency in the Unity Editor. Instead you need to create the video with an external tool then import it into Unity.
To use a video with per-pixel transparency in Unity:
- Use an external video rendering or authoring application to create your transparent video or image sequence.
- Export the video in a format that allows transparency and that Unity supports. For more information, refer to Supported codecs for transparent videos (per-pixel alpha).
- Drag your video file into Unity. The video imports as a Video Clip.
- If your video has the Apple ProRes 4444 codec, Change your Video Clip settings.
As a result, your transparent video is ready for use in Unity.
Change your Video Clip settings
If your transparent video’s codec is Apple ProRes 4444:
- Select your imported video clip. The Video Clip Importer Inspector window displays.
- Enable Transcode.
- Enable Keep Alpha.
As a result, your ProRes video is ready for use in Unity.
Additional resources
Supported codecs for transparent videos (per-pixel alpha)