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.SetAspectRatio

static function SetAspectRatio(aspectRatio: AspectRatio, enable: bool): void;
static void SetAspectRatio(AspectRatio aspectRatio, bool enable);
static def SetAspectRatio(aspectRatio as AspectRatio, enable as bool) as void

Description

Enables the specified aspect ratio.

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