• Studio

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • AudioListener

    Inherits from: Behaviour

    AudioListener functions as the game's auditory receiver, essential for creating immersive audio experiences. It works in tandem with AudioSource objects, replicating the real-world effect of sound proximity and volume. Typically attached to the camera or player, it facilitates global audio control, including volume adjustment and scene-wide pausing. For in-depth insights, consult Unity's official AudioListener documentation.

    Properties

    volume

    number

    Acts as a master volume control, affecting all AudioSource objects heard by the AudioListener.

    pause

    boolean

    Allows pausing or resuming all audio in the scene, useful for game events requiring silence.

    PocketWorlds Icon

    © 2024 Pocket Worlds. All rights reserved.