Hello.
The code I wrote in C++ is not reflected in the Blueprint for some reason I can not understand. Let me say it very simply that the camera is not attached to the component I want to attach.
ArmsComp= CreateDefaultSubobject<USkeletalMeshComponent(TEXT("AnimatingArms"));
ArmsComp->SetupAttachment(RootScene);
ArmsComp->SetVisibility(false);
CameraComp = CreateDefaultSubobject<UCameraComponent(TEXT("InteractionCamera");
CameraComp ->SetupAttachment(ArmsComp, "CameraJoint");
CameraComp ->SetRelativeRotation(FRotator(90.0f, 90.0f, 0.0f));
CameraComp ->SetAutoActivate(false);
CameraComp ->SetActive(false);
Even the rotation information that I am trying to set is not reflected.
When you assign the animation to the skeletal mesh, the camera also needs to change position with the skeletal mesh, which was actually the case and it broke for some reason I couldn’t find.
Has anyone had such a problem?