Godot Version
v4.3.stable.official
Question
I am starting to make an add-on that adds batter audio dynamics, like occlusion, to the AudioStreamPlayer3D node, and for that I need the current audio listener transform in the scene. How I get the current audio listener node in the scene?
The AudioListener3D node has a make_current()
function, but I do not know how to get the current one.
I really tried to find on something the documentation, but I did not find anything about it.
Would be nice to support the cases where I use the AudioListener3D node, instead of only support cases where the camera is the listener, that can be got by the get_viewport().get_camera_3d()
function.
And I would like to add features on the audio listener side too, and would be nice to have it in a script in an AudioListener3D node, not in the Camera3D node.