Getting an Error With GrabbedComponent

When I try to access GrabbedComponent from PhysicsHandle, there is an inaccessible due to protection level error. However, when I peek into the PhysicsHandleComponent class to see its GrabbedComponent, that class is not under a private identifier. Can someone offer me a fix or explain if I possibly have been doing something wrong. Here is a screenshot of the code below.

1 Like

Hi, I had the same problem and fixed it, you just need to use
PhysicsHandle->GetGrabbedComponent() and it will work.

Thank you! That worked.

Hi, what is your unreal engine version you are using?

Hi, what is your unreal engine version you are using for this?

4.20

Privacy & Terms