Description
Retrieves a set of occlusion tags that the sounds associated with this mixer are intended to interact with. These tags are used to determine how sound is occluded by various objects in the environment. The method may return null
if no occlusion tags are defined.
Usage
Call this method on an instance of the Mixer
class to obtain the occlusion tags. This can be useful for debugging or for dynamically adjusting sound behavior based on environmental changes.
Example
// Example of using GetOcclusionTags
Mixer audioMixer = new Mixer();
IReadOnlySet<uint> occlusionTags = audioMixer.GetOcclusionTags();
if (occlusionTags != null)
{
foreach (var tag in occlusionTags)
{
// Process each occlusion tag
// For example, log the tag or use it in a conditional check
}
}
else
{
// Handle the case where no occlusion tags are defined
}