Expose Viewport.get_listener_2d()
to the scripting API
#54612
Labels
Milestone
Viewport.get_listener_2d()
to the scripting API
#54612
Godot version
3.4
System information
All
Issue description
get_viewport().get_listener_2d()
does not exist. It would be useful to expose this since current camera is exposed already. I am trying to do some logic that would be a lot easier to do knowing the current Listener2D position. I guess another way could be to expose the global position of a listener in case the there is no Listener2D currently and the center of the screen would be used instead.Steps to reproduce
get_viewport().get_listener_2d()
is an errorMinimal reproduction project
Above is enough to reproduce
The text was updated successfully, but these errors were encountered: