bool Transmission { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Transmission property of the SoundEvent class determines whether the sound can be transmitted through geometry. This property is a boolean value, where true allows the sound to pass through objects, and false restricts it.

Usage

To use the Transmission property, you can set it directly on an instance of SoundEvent. This property is particularly useful when you want to simulate sound traveling through walls or other obstacles in a game environment.

Example

// Create a new SoundEvent instance
SoundEvent soundEvent = new SoundEvent();

// Enable sound transmission through geometry
soundEvent.Transmission = true;

// Check if the sound is set to transmit through geometry
bool isTransmitting = soundEvent.Transmission;

// Output: true
// This indicates that the sound will be transmitted through geometry
System.Diagnostics.Debug.WriteLine(isTransmitting);