Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

AspectRatio

enumeration

Switch to Manual

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.