Version: 2017.1

VideoAspectRatio

enumeration

Switch to Manual

Description

Methods used to fit a video in the target area.

Variables

NoScalingPreserve the pixel size without adjusting for target area.
FitVerticallyResize proportionally so that height fits the target area, cropping or adding black bars on each side if needed.
FitHorizontallyResize proportionally so that width fits the target area, cropping or adding black bars above and below if needed.
FitInsideResize proportionally so that content fits the target area, adding black bars if needed.
FitOutsideResize proportionally so that content fits the target area, cropping if needed.
StretchResize non-proportionally to fit the target area.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961