Description
The Transmission
property of the SoundEvent
class determines whether the sound can be transmitted through geometry. This property is useful for simulating realistic sound behavior in environments where sound can pass through walls or other obstacles.
Usage
To use the Transmission
property, simply set it to true
or false
depending on whether you want the sound to be transmitted through geometry. This property is particularly useful in scenarios where you want to control how sound interacts with the environment.
Example
// Example of setting the Transmission property
SoundEvent mySoundEvent = new SoundEvent();
mySoundEvent.Transmission = true; // Allow sound to be transmitted through geometry
// Later in the code, you can check if the sound is set to transmit
if (mySoundEvent.Transmission)
{
// Perform actions knowing the sound can transmit through geometry
}