FActiveSound::CheckOcclusion

If OcclusionCheckInterval > 0.0, checks if the sound has become (un)occluded during playback and calls eventOcclusionChanged() if so primarily used for gameplay-relevant ambient sounds CurrentLocation is the location of this component that will be used for playback

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/ActiveSound.h

Include

#include "ActiveSound.h"

Source

/Engine/Source/Runtime/Engine/Private/ActiveSound.cpp

Syntax

void CheckOcclusion
(
    const FVector ListenerLocation,
    const FVector SoundLocation,
    const FSoundAttenuationSettings * AttenuationSettingsPtr
)

Remarks

If OcclusionCheckInterval > 0.0, checks if the sound has become (un)occluded during playback and calls eventOcclusionChanged() if so primarily used for gameplay-relevant ambient sounds CurrentLocation is the location of this component that will be used for playback

Parameters

Parameter

Description

ListenerLocation

location of the closest listener to the sound

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss