Lens Scripting API

    Class AudioListenerComponent

    Processes input from AudioComponents that use Spatial Audio.

    The Audio Listener component acts as a microphone-like device. It receives input from AudioComponents that have Spatial Audio setting enabled and allows to calculate their relative positions to the scene object it is attached to and properly mix them.

    Audio Listener guide

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    enabled: boolean

    If disabled, the Component will stop enacting its behavior.

    sceneObject: SceneObject

    The scene object this component is on.

    uniqueIdentifier: string

    Methods

    • Destroys the component.

      Returns void

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    MMNEPVFCICPMFPCPTTAAATR