Content Fitter
Overview
The Content Fitter extension helps you to control how your game looks across multiple screens with different sizes and aspect ratios. Define a target height, widht or aspect ratio and let the extension take care of the rest for you.
Content Fitter Modes
Aspect Ratio
In this mode, the camera will always resize in order to make sure that the specified aspect ratio fits inside the viewport
Fixed Width
In this mode, the camera resizes while maintaining the specified width
Fixed Height
In this mode, the camera resizes while maintaining the specified height (default behaviour with a regular Unity camera)
Editor
Parameters:
Content Fitter Mode
: Aspect Ratio, Fixed Width or Fixed HeightTarget Width
: The width you want to cover with your cameraTarget Height
: The height you want to cover with your cameraTarget Aspect Ratio
: The aspect ratio that the camera should fit insideHorizontal Alignment
: The horizontal positioning of the camera inside the viewportVertical Alignment
: The vertical positioning of the camera inside the viewportUse Letter/Pillarboxing
: If selected, the camera will add black bars to hide the portions outside of the target aspect ratio