Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/AActor
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include | #include "GameFramework/Actor.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Actor.cpp |
bool AttachToActor
&40;
AActor &42; ParentActor,
const FAttachmentTransformRules & AttachmentRules,
FName SocketName
&41;
Remarks
Attaches the RootComponent of this Actor to the RootComponent of the supplied actor, optionally at a named socket. Whether the attachment was successful or not
Parameters
| Name | Description |
|---|---|
| ParentActor | Actor to attach this actor's RootComponent to |
| AttachmentRules | How to handle transforms and modification when attaching. |
| SocketName | Socket name to attach to, if any |