AudioListener

class in Infernux.components.builtin

Inherits from: BuiltinComponent

Description

Represents the listener/ears for 3D audio in the scene.

Attach one AudioListener to the main camera in most games. The engine keeps one active listener; additional enabled listeners remain registered but can be standby instead of immediately replacing the active listener.

description

Properties

Name Type Description
game_object_id int The ID of the GameObject this component is attached to. (read-only)

properties

Public Methods

Method Description
serialize() → str Serialize the component to a JSON string.
deserialize(json_str: str) → bool Deserialize the component from a JSON string.

public_methods

Example

example

# TODO: Add example for AudioListener

See Also

see_also