Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

AudioSettings.speakerMode

Switch to Manual
public static AudioSpeakerMode speakerMode;

Description

Gets the current speaker mode. Default is 2 channel stereo.

As of version 5.0 setting the speaker mode from scripts is no longer supported. This has to be set in the Audio section of the project settings instead.