Version: 2022.3
LanguageEnglish
  • C#

VideoAspectRatio.FitOutside

Suggest a change

Success!

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.

Close

Submission failed

For 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.

Close

Cancel

Description

Resize the image proportionally so that the content fits the target area. The VideoPlayer automatically crops the image if needed.

Use this setting to make the video cover the entire object, but keep the video’s dimensions. This setting avoids distortion and black bars. Useful if you want to cover areas like skyboxes or backgrounds where you don't want black bars to show. The VideoPlayer automatically crops the image if needed.