Listener.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Listener" inherits="Spatial" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Overrides the location sounds are heard from.
  5. </brief_description>
  6. <description>
  7. Once added to the scene tree and enabled using [method make_current], this node will override the location sounds are heard from. This can be used to listen from a location different from the [Camera].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="clear_current">
  13. <return type="void" />
  14. <description>
  15. Disables the listener to use the current camera's listener instead.
  16. </description>
  17. </method>
  18. <method name="get_listener_transform" qualifiers="const">
  19. <return type="Transform" />
  20. <description>
  21. Returns the listener's global orthonormalized [Transform].
  22. </description>
  23. </method>
  24. <method name="is_current" qualifiers="const">
  25. <return type="bool" />
  26. <description>
  27. Returns [code]true[/code] if the listener was made current using [method make_current], [code]false[/code] otherwise.
  28. [b]Note:[/b] 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.
  29. </description>
  30. </method>
  31. <method name="make_current">
  32. <return type="void" />
  33. <description>
  34. Enables the listener. This will override the current camera's listener.
  35. </description>
  36. </method>
  37. </methods>
  38. <constants>
  39. </constants>
  40. </class>