Version: 2023.2
언어: 한국어

VideoAspectRatio

enumeration

매뉴얼로 전환

설명

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

변수

NoScalingPreserve 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.
FitHorizontallyResize the image proportionally so that the width fits the target area. The VideoPlayer automatically crops the image if needed.
FitInsideResize the image proportionally so that the content fits the target area.
FitOutsideResize the image proportionally so that the content fits the target area. The VideoPlayer automatically crops the image if needed.
StretchResize the image non-proportionally to fit the target area.