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;