AudioListener2D
Hereda: Node2D < CanvasItem < Node < Object
Sobrescribe los sonidos de localización que se escuchan.
Descripción
Once added to the scene tree and enabled using make_current(), this node will override the location sounds are heard from. Only one AudioListener2D can be current. Using make_current() will disable the previous AudioListener2D.
If there is no active AudioListener2D in the current Viewport, center of the screen will be used as a hearing point for the audio. AudioListener2D needs to be inside SceneTree to function.
Métodos
void |
|
is_current() const |
|
void |
Descripciones de Métodos
void clear_current() 🔗
Desactiva AudioListener2D. Si no está configurado como actual, este método no tendrá efecto.
Devuelve true si este AudioListener2D está actualmente activo.
void make_current() 🔗
Activa AudioListener2D, estableciéndolo como punto de escucha de los sonidos. Si ya hay otro AudioListener2D activo, se deshabilitará.
Este método no tendrá efecto si AudioListener2D no se añade a SceneTree.