How to access private member declared in class? C++

Hi, I recently upgraded my project from 4.20 to 4.23 , and then 4.27 …
Now I have a problem with my code
FVector CurrentLocation = SpringArm->RelativeLocation;

USceneComponent::RelativeLocation , cannot access private member declared USceneComponent

How to fix this , Thank You )

try GetRelativeLocation, it was changed in new versions

hope it helps, cheers!


yep, the issue is gone, and now another issue


try adding PhysicalMaterial or PhysicsCore in

I don’t really remember but try them , hope it will help, cheers!


Solved the issue, Thank You Sir, very very much i really appreciate )