Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

PlayerSettings.HasAspectRatio

static function HasAspectRatio(aspectRatio: AspectRatio): bool;
static bool HasAspectRatio(AspectRatio aspectRatio);
static def HasAspectRatio(aspectRatio as AspectRatio) as 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.