UAudioComponent::GetInstanceOwnerID
#include "Components/AudioComponent.h"
Access: public
Specifiers: overrideinline
Description
Returns this component's unique AudioComponentID, used by the ISoundParameterControllerInterface to identify which owner a set of runtime parameters belongs to.
Caveats & Gotchas
- • This is the interface-required accessor for AudioComponentID, not a general-purpose actor/object identifier — don't repurpose it outside the parameter-controller system.
- • The ID is only stable for the component's lifetime and is not the same value as GetUniqueID() on the underlying UObject.
Signature
uint64 GetInstanceOwnerID() const override { return AudioComponentID; } Return Type
uint64 Example
Look up a component from its owner ID C++
uint64 OwnerID = AudioComponent->GetInstanceOwnerID();
UAudioComponent* Found = UAudioComponent::GetAudioComponentFromID(OwnerID); See Also
Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?