USceneComponent::SetupAttachment

Initializes desired Attach Parent and SocketName to be attached to when the component is registered.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/SceneComponent.h

Include

#include "Components/SceneComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/SceneComponent.cpp

Syntax

void SetupAttachment
(
    USceneComponent * InParent,
    FName InSocketName
)

Remarks

Initializes desired Attach Parent and SocketName to be attached to when the component is registered. Generally intended to be called from its Owning Actor's constructor and should be preferred over AttachToComponent when a component is not registered.

Parameters

Parameter

Description

InParent

Parent to attach to.

InSocketName

Optional socket to attach to on the parent.