Spring Arm Component in Blueprint doesn't show translation and rotation.

Hey guys,

When I execute the following lines of code

in .h

	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Meta=(Category="Camera", AllowPrivateAccess = "true"))
	class UCameraComponent* PlayerPOVCamera;

	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Meta = (Category = "Camera", AllowPrivateAccess = "true"))
	class USpringArmComponent* PlayerPOVCameraArm;

and this in my .cpp

PlayerPOVCameraArm = CreateDefaultSubobject<USpringArmComponent>("PlayerPOVCameraArm");
	PlayerPOVCameraArm->SetRelativeRotation(FRotator::ZeroRotator);

	PlayerPOVCamera    = CreateDefaultSubobject<UCameraComponent>("PlayerPOVCamera");
	PlayerPOVCamera->AttachTo(PlayerPOVCameraArm);

I can’t seem to find the property editors for Translation and Rotation for the SpringArm component in the character blueprint editor. Any ideas on why this is happening and what is my potential fix?

Looks like it thinks it is the root. Add this line and see if it solves the Problem for you.

PlayerPOVCameraArm->SetupAttachment(RootComponent);

And change the AttachTo line to:

PlayerPOVCamera->SetupAttachment(PlayerPOVCameraArm, USpringArmComponent::SocketName);

K that seemed to have been the issue. For some reason I missed because I just transitioned to using NewObject and thought this wasn’t necessary due to the outer object thing. My bad. But I do not have the SetupAttachment function in the API for scene component. Am I missing something? I did AttachTo now and it seems fine.

Its a 4.12 thing =) you can use attach to.

From 4.12 Source: “SetupAttachment should only be used to initialize AttachParent and AttachSocketName for a future AttachTo. Once a component is registered you must use AttachTo.”