Version

    Other Documentation

menu_open
Wwise Unity Integration Documentation
AkSpatialAudioListener Class Reference

Add this script on the game object that represent a listener. This is normally added to the Camera object or the Player object, but can be added to any game object when implementing 3D busses. isDefaultListener determines whether the game object will be considered a default listener - a listener that automatically listens to all game objects that do not have listeners attached to their AkGameObjListenerList's. More...

Inheritance diagram for AkSpatialAudioListener:
AkSpatialAudioBase

Classes

class   SpatialAudioListenerList
  This class represents the list of active Unity Game Objects that are designated to be spatial audio listeners. Currently, only one spatial audio listener can be active at a time. More...
 

Public Member Functions

void  EnteredRoom (AkRoom room)
  Called when entering a room. More...
 
void  ExitedRoom (AkRoom room)
  Called when exiting a room. More...
 
void  SetGameObjectInRoom ()
  Sets the Unity Game Object within the highest priority room. More...
 

Properties

static AkAudioListener TheSpatialAudioListener [get]
  Returns the "single" spatial audio listener. More...
 
static SpatialAudioListenerList  SpatialAudioListeners [get]
  Returns the list of active Unity Game Objects that are designated to be spatial audio listeners. More...
 

Detailed Description

Add this script on the game object that represent a listener. This is normally added to the Camera object or the Player object, but can be added to any game object when implementing 3D busses. isDefaultListener determines whether the game object will be considered a default listener - a listener that automatically listens to all game objects that do not have listeners attached to their AkGameObjListenerList's.

See also

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise