bAutoManageAttachment

True if we should automatically attach to AutoAttachParent when Played, and detach from our parent when playback is completed.

Windows
MacOS
Linux

Syntax

uint8 bAutoManageAttachment: 1

Remarks

True if we should automatically attach to AutoAttachParent when Played, and detach from our parent when playback is completed. This overrides any current attachment that may be present at the time of activation (deferring initial attachment until activation, if AutoAttachParent is null). If enabled, this AudioComponent's WorldLocation will no longer be reliable when not currently playing audio, and any attach children will also be detached/attached along with it. When enabled, detachment occurs regardless of whether AutoAttachParent is assigned, and the relative transform from the time of activation is restored. This also disables attachment on dedicated servers, where we don't actually activate even if bAutoActivate is true.

See Also

AutoAttachParent

[AutoAttachSocketName](API\Runtime\Engine\Components\UAudioComponent\AutoAttachSocketName)

AutoAttachLocationType

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss