:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the Listener.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_Listener: Listener ======== **Inherits:** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` Overrides the location sounds are heard from. Description ----------- Once added to the scene tree and enabled using :ref:`make_current`, this node will override the location sounds are heard from. This can be used to listen from a location different from the :ref:`Camera`. **Note:** There is no 2D equivalent for this node yet. Methods ------- +-----------------------------------+-----------------------------------------------------------------------------------------------+ | void | :ref:`clear_current` **(** **)** | +-----------------------------------+-----------------------------------------------------------------------------------------------+ | :ref:`Transform` | :ref:`get_listener_transform` **(** **)** const | +-----------------------------------+-----------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_current` **(** **)** const | +-----------------------------------+-----------------------------------------------------------------------------------------------+ | void | :ref:`make_current` **(** **)** | +-----------------------------------+-----------------------------------------------------------------------------------------------+ Method Descriptions ------------------- .. _class_Listener_method_clear_current: - void **clear_current** **(** **)** Disables the listener to use the current camera's listener instead. ---- .. _class_Listener_method_get_listener_transform: - :ref:`Transform` **get_listener_transform** **(** **)** const Returns the listener's global orthonormalized :ref:`Transform`. ---- .. _class_Listener_method_is_current: - :ref:`bool` **is_current** **(** **)** const Returns ``true`` if the listener was made current using :ref:`make_current`, ``false`` otherwise. **Note:** There may be more than one Listener marked as "current" in the scene tree, but only the one that was made current last will be used. ---- .. _class_Listener_method_make_current: - void **make_current** **(** **)** Enables the listener. This will override the current camera's listener.