Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Components > USceneComponent
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 |
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
Name | Description |
---|---|
InParent | Parent to attach to. |
InSocketName | Optional socket to attach to on the parent. |