Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AspectRatio

enumeration

Description

Aspect ratio.

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

Variables

AspectOthersUndefined aspect ratios.
Aspect4by34:3 aspect ratio.
Aspect5by45:4 aspect ratio.
Aspect16by1016:10 aspect ratio.
Aspect16by916:9 aspect ratio.