In the blueprint of an actor i have a mesh with inherited UCapsuleComponent but the Parent Socket field is empty, it doesn’t show “None” or opens Browse avaible sockets
The header contains
private:
UPROPERTY(VisibleDefaultsOnly, Category = Mesh)
USkeletalMeshComponent* Mesh3P;
UPROPERTY(VisibleAnywhere, Category = Skeleton)
UCapsuleComponent* HeadComponent;
while the .cpp
AAICharacter::AAICharacter(const FObjectInitializer& ObjectInitializer)
{
Mesh3P = ObjectInitializer.CreateDefaultSubobject<USkeletalMeshComponent>(this, TEXT("3P"));
RootComponent = Mesh3P;
HeadComponent = ObjectInitializer.CreateDefaultSubobject<UCapsuleComponent>(this, TEXT("Head"));
HeadComponent->InitCapsuleSize(34.0f, 88.0f);
HeadComponent->AttachParent = Mesh3P;
}
How can I retrieve the socket list and choose what socket attach to?