UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in

23 lines (22 loc) 754 B
import { AudioListener as ThreeAudioListener } from "three"; import { Behaviour } from "./Component.js"; /** * AudioListener represents a listener that can be attached to a GameObject to listen to audio sources in the scene. * @category Multimedia * @group Components */ export declare class AudioListener extends Behaviour { /** * Gets the existing or creates a new {@link ThreeAudioListener} instance * @returns The {@link ThreeAudioListener} instance */ get listener(): ThreeAudioListener; private _listener; /** @internal */ onEnable(): void; /** @internal */ onDisable(): void; private onInteraction; private addListenerIfItExists; private removeListenerIfItExists; }