Cannot access private member declared in class

You can’t access RelativeLocation due to private access specifier.

private:
	/** Location of the component relative to its parent */
	UPROPERTY(EditAnywhere, BlueprintReadOnly, ReplicatedUsing=OnRep_Transform, Category = Transform, meta=(AllowPrivateAccess="true"))
	FVector RelativeLocation;

Use GetRelativeLocation() instead of RelativeLocation;

Hello, I’ve recently come back to UE4 to develop my game. Though I’m new to UE4 and game making so this is a struggle. I’ve tried adding a plugin to my project and during that updated from UE 4.22.3 to 4.25 and the following is the errors I’m getting.

FirstPersonCameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("FirstPersonCamera"));
	FirstPersonCameraComponent->SetupAttachment(GetCapsuleComponent());
	FirstPersonCameraComponent-> RelativeLocation= FVector(-39.56f, 1.75f, 64.f); // Position the camera
	FirstPersonCameraComponent->bUsePawnControlRotation = true;

“RelativeLocation” is the error cause.

Any help is appreciated

But I’m confused how did this work in 4.22

If you are curios about the changes of the engine I encourage you to connect your GitHub account to Epic Games: Unreal Engine 4 on GitHub - Unreal Engine

After connecting your profile you can access to this link:
https://github.com/EpicGames/UnrealEngine/commit/88a68fa9a0f7bd1230d530e430c1261004f60f18#diff-31896b6fcde1285aebb524b569346d64R152