Letterboxing

Class in Zigurous.UI

Declaration

public sealed class Letterboxing : MonoBehaviour

Description

Crops the screen to a specified aspect ratio by changing the camera's viewport. This is known as letterboxing and is useful for cutscenes.

Properties

cameraThe camera being letterboxed (Read only).
viewportHeightThe current height of the viewport (Read only).
aspectRatioThe aspect ratio of the mattes.
animationDurationThe amount of seconds it takes to animate the mattes.