Description
The ListenLocal
property of the SoundHandle
class is a boolean that determines whether the listener is placed at the origin (0,0,0) facing the positive x-axis (1,0,0). This can be useful for debugging or specific audio scenarios where you want to simulate the listener being at a fixed point in the world.
Usage
To use the ListenLocal
property, simply set it to true
or false
depending on whether you want the listener to be positioned at the origin:
SoundHandle soundHandle = new SoundHandle();
// Enable local listening
soundHandle.ListenLocal = true;
// Disable local listening
soundHandle.ListenLocal = false;
Example
SoundHandle soundHandle = new SoundHandle();
// Enable local listening
soundHandle.ListenLocal = true;
// Perform operations with the sound handle
// ...
// Disable local listening when done
soundHandle.ListenLocal = false;