Hello, can you show the part of the code where you manage the spring arm and the camera ? If they are editable in blueprint, can you show the details in blueprint too ?
If you want to compare, there’s some lines I made for my project. They are in my constuctor. It works for me sow maybe something can help you :
{
/* Create SpringArm for camera
* Attach to root
* Change start location and rotation relative to root location
* Change SpringArm length (Distance between root and Camera) */
SpringArm = CreateDefaultSubobject<USpringArmComponent>(TEXT("Spring Arm"));
SpringArm->SetupAttachment(RootComponent);
SpringArm->SetRelativeLocationAndRotation(FVector(0.0f, 0.0f, 100.0f), FRotator(0.0f, -90.0f, 0.0f));
SpringArm->TargetArmLength = 400.f;
//Create camera attached to SpringArm
GameCamera = CreateDefaultSubobject<UCameraComponent>(TEXT("Follow Camera"));
GameCamera->SetupAttachment(SpringArm);
}
I just have to warn you, I made this in UE4. I don’t know if it always work on UE5.
All the librairies I needed are :
GameFramework/SpringArmComponent.h and Camera/CameraComponent.h