An Audio Component effect that allows the Lens to simulate sound based on the direction of the Audio Listener relative to the Audio Component.
// @input Component.AudioComponent audiovar spatialAudio = script.audio.spatialAudio;var positionEffect = spatialAudio.positionEffect;positionEffect.enabled = true; Copy
// @input Component.AudioComponent audiovar spatialAudio = script.audio.spatialAudio;var positionEffect = spatialAudio.positionEffect;positionEffect.enabled = true;
Protected
If enabled, the position effect will be applied.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
other
An Audio Component effect that allows the Lens to simulate sound based on the direction of the Audio Listener relative to the Audio Component.
Example