UAudioComponent::AdditionalStatObject
#include "Components/AudioComponent.h"
Access: public
Specifiers: virtualoverride
Description
Returns the assigned Sound asset so it appears alongside this component's name in editor stat/debug displays (e.g. the component list's detailed info).
Caveats & Gotchas
- • This is a debug/tooling hook from ActorComponent, not gameplay-facing — it only affects what shows up in editor stat readouts.
- • Returns null when no Sound is assigned, which is expected and handled by the calling display code.
Signature
virtual const UObject* AdditionalStatObject() const override Return Type
const UObject* Example
Override pattern (matches engine implementation) C++
const UObject* UAudioComponent::AdditionalStatObject() const
{
return Sound;
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?