Listener

Overrides the location sounds are heard from.

Once added to the scene tree and enabled using makeCurrent, this node will override the location sounds are heard from. This can be used to listen from a location different from the Camera. Note: There is no 2D equivalent for this node yet.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

clearCurrent
void clearCurrent()

Disables the listener to use the current camera's listener instead.

getListenerTransform
Transform getListenerTransform()

Returns the listener's global orthonormalized Transform.

isCurrent
bool isCurrent()

Returns true if the listener was made current using makeCurrent, 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.

makeCurrent
void makeCurrent()

Enables the listener. This will override the current camera's listener.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(Listener other)
opEquals
bool opEquals(typeof(null) n)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
Listener _new()

Construct a new instance of Listener. Note: use memnew!Listener instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta