Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

VideoResizeMode

enumeration

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

How the video clip's images will be resized during transcoding.

When choosing a mode that may result in a change in aspect ratio, use the VideoClipImporter.keepRatio property to control the addition of padding.

Properties

OriginalSizeSame width and height as the source.
ThreeQuarterRes3/4 width and height.
HalfResHalf width and height.
QuarterResQuarter width and height.
Square1024Fit source in a 1024x1024 rectangle.
Square512Fit source in a 512x512 rectangle.
Square256Fit source in a 256x256 rectangle.
CustomSizeResulting size will be driven by VideoClipImporter.customWidth and VideoClipImporter.customHeight.

Did you find this page useful? Please give it a rating: