USoundWave::OverrideLoadingBehavior

If Stream Caching is enabled, this can be used to override the default loading behavior of this [USoundWave](API\Runtime\Engine\Sound\USoundWave).

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Sound/SoundWave.h

Include

#include "Sound/SoundWave.h"

Source

/Engine/Source/Runtime/Engine/Private/SoundWave.cpp

Syntax

void OverrideLoadingBehavior
(
    ESoundWaveLoadingBehavior InLoadingBehavior
)

Remarks

If Stream Caching is enabled, this can be used to override the default loading behavior of this USoundWave. This can even be called on USoundWaves that still have the RF_NeedLoad flag, and won't be stomped by serialization.

The new behavior will be ignored if it is less memory-aggressive than existing (even inherited) behavior