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.

AudioSource.ignoreListenerPause

Switch to Manual
var ignoreListenerPause: bool;
bool ignoreListenerPause;
ignoreListenerPause as bool

Description

Allows AudioSource to play even though AudioListener.pause is set to true. This is useful for the menu element sounds or background music in pause menus.

This property can only be set via the script and is not serialized.