Documentation
¶
Overview ¶
Package AudioListener2D provides methods for working with AudioListener2D object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsAudioListener2D() Instance
- func (self Instance) AsCanvasItem() CanvasItem.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsNode2D() Node2D.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) ClearCurrent()
- func (self Instance) IsCurrent() bool
- func (self Instance) MakeCurrent()
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Instance ¶
type Instance [1]gdclass.AudioListener2D
Once added to the scene tree and enabled using [method make_current], this node will override the location sounds are heard from. Only one [AudioListener2D] can be current. Using [method 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.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsAudioListener2D ¶
func (Instance) AsCanvasItem ¶
func (self Instance) AsCanvasItem() CanvasItem.Instance
func (Instance) ClearCurrent ¶
func (self Instance) ClearCurrent()
Disables the [AudioListener2D]. If it's not set as current, this method will have no effect.
func (Instance) IsCurrent ¶
Returns [code]true[/code] if this [AudioListener2D] is currently active.
func (Instance) MakeCurrent ¶
func (self Instance) MakeCurrent()
Makes the [AudioListener2D] active, setting it as the hearing point for the sounds. If there is already another active [AudioListener2D], it will be disabled. This method will have no effect if the [AudioListener2D] is not added to [SceneTree].