AspectRatio Manual     Reference     Scripting  
Scripting > Editor Enumerations > AspectRatio
AspectRatio Enumeration

Aspect ratio

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

This enum is used when modifying and inspecting supported aspect ratios in PlayerSettings.

Values
AspectOthers

Undefined aspect ratios.

Aspect4by3

4:3 aspect ratio.

Aspect5by4

5:4 aspect ratio.

Aspect16by10

16:10 aspect ratio.

Aspect16by9

16:9 aspect ratio.