UAudioComponent::HasCookedFFTData
#include "Components/AudioComponent.h"
Access: public
Specifiers: constUFUNCTIONBlueprintCallable
Description
Returns whether the sound wave currently playing on this component has baked (cooked) FFT spectral data available, as false if none was found.
Caveats & Gotchas
- • Cooked FFT data must be enabled per-SoundWave asset (via its analysis settings) and baked at cook time — most sound assets don't have it by default.
- • Returns false if nothing is currently playing, even if the assigned sound asset does have cooked data available.
- • Check this before calling GetCookedFFTData() to avoid wasting a call on a sound with no spectral data.
Signature
bool HasCookedFFTData() const Return Type
bool Example
Guard a spectral visualizer C++
if (AudioComponent->HasCookedFFTData())
{
UpdateSpectrumVisualizer();
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?