Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

PlayerSettings.HasAspectRatio

public static function HasAspectRatio(aspectRatio: AspectRatio): bool;

Description

Returns whether or not the specified aspect ratio is enabled.

Aspect Ratios selectable in the Resolution Dialog will be monitor-supported resolutions of enabled items from this list.