GetWorldTransform for SceneComponent in C++

I found the equivalent blueprint node: GetWorldTransform | Unreal Engine Documentation

But for some reason I can’t call the function from C++. I only get SetWorldTransform(). Similar issue with GetWorldLocation.

I want to simply get the location of my component’s transform in world coordinates and set an actor to that location. I am using both USceneComponent and UBoxComponent.

Nevermind, found them:

GetComponentLocation

and

GetComponentTransform

1 Like

I just came here for the same question, It’s annoying to see a different naming convention in C++ rather than those in the Blueprint Nodes.

Yeah,it looks like you need to learn the Unreal Framework twice.

Was looking for this answer for a day. I can verify.