Description
The OcclusionRadius
property of the BaseSoundComponent
class defines the radius within which sound occlusion is calculated. This property is used to determine how sound is affected by obstacles within the specified radius, simulating realistic audio occlusion effects.
Usage
Use the OcclusionRadius
property to set the radius for sound occlusion calculations. This value should be set based on the desired level of audio realism and the specific requirements of your scene. The property accepts a float
value ranging from 0 to 256, with a default increment of 0.01.
Example
// Example of setting the OcclusionRadius property
BaseSoundComponent soundComponent = new BaseSoundComponent();
soundComponent.OcclusionRadius = 100.0f; // Set the occlusion radius to 100 units