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!

2 Likes

yep, the issue is gone, and now another issue

:yawning_face:

try adding PhysicalMaterial or PhysicsCore in yourproject.build.cs

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

2 Likes

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