class USpringArmComponent;
private:
UPROPERTY(EditAnywhere,BluepringReadOnly,Category = Camera, meta = (AllowPrivateAcces = "true"))
USpringArmComponent* CameraBoom;
#include "GameFramework/SpringArmComponent.h"
CameraBoom = CreateDefaultSubobject<USprintArmComponent>("CameraBoom")
CameraBoom->SetupAttachment(RootComponent);
Class UCameraComponent;
UCameraComponent* Camera;
#include "Camera/CameraComponent.h"
Camera = CreateDefaultSubobject<UCameraComponent>("Camera")
Camera->SetupAttachment(CameraBoom);
CameraBoom->TargetArmLength = 500.f
CameraBoom->SetRelativeRotation(FRotator(0.f ,-30.f, 0.f))