AttachComponentToComponent

AttachComponentToComponent

Windows
MacOS
Linux

Attach this component to another scene component, optionally at a named socket. It is valid to call this on components whether or not they have been Registered.

Target is Scene Component

AttachComponentToComponent
Target
Parent
Socket Name
None
Location Rule
KeepRelative
Rotation Rule
KeepRelative
Scale Rule
KeepRelative
Weld Simulated Bodies
Return Value

Inputs

In
Exec
Target
Scene Component Object Reference
Parent
Scene Component Object Reference

Parent to attach to.

Socket Name
Name

Optional socket to attach to on the parent.

Location Rule
EAttachmentRule Enum

How to handle translation when attaching.

Rotation Rule
EAttachmentRule Enum

How to handle rotation when attaching.

Scale Rule
EAttachmentRule Enum

How to handle scale when attaching.

Weld Simulated Bodies
Boolean

Whether to weld together simulated physics bodies.

Outputs

Out
Exec
Return Value
Boolean

True if attachment is successful (or already attached to requested parent/socket), false if attachment is rejected and there is no change in AttachParent.

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