RealDocs

UAudioComponent::GetFNameForStatID

function Engine Since 4.0
#include "Components/AudioComponent.h"
Access: public Specifiers: virtualoverride

Description

Returns the FName used to group this component's entries under the stats/profiling system, overriding the default UObject stat ID.

Caveats & Gotchas

  • This is a profiling hook consumed by the stats system (e.g. `stat` commands and Unreal Insights), not something gameplay code needs to call directly.
  • Overriding it in a derived class only changes how the component's cost is labelled in profiler output — it has no effect on behaviour or performance itself.

Signature

virtual FName GetFNameForStatID() const override

Return Type

FName

Example

Override pattern for a derived audio component C++
FName UMyAudioComponent::GetFNameForStatID() const
{
    return TEXT("MyAudioComponent");
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.