USceneComponent::SetupAttachment

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

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.

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