enumeration
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseMethods used to fit a video in the target area. If you're rendering a video into a RenderTexture, and the aspect ratio of the RenderTexture doesn't match that of the video being rendered, the VideoPlayer automatically adds black bars around the video. If you're rendering a video into a Camera, any area around the video remains transparent.
NoScaling | Preserve the pixel size without adjusting for target area. |
FitVertically | Resize the image proportionally so that the height fits the target area. The VideoPlayer automatically crops the image if needed. |
FitHorizontally | Resize the image proportionally so that the width fits the target area. The VideoPlayer automatically crops the image if needed. |
FitInside | Resize the image proportionally so that the content fits the target area. |
FitOutside | Resize the image proportionally so that the content fits the target area. The VideoPlayer automatically crops the image if needed. |
Stretch | Resize the image non-proportionally to fit the target area. |