AActor::GetTransform() vs AActor::GetActorTransform()?

These 2 methods seem like they are going to return the same thing. I looked at the source, and they are not simply one method calling the other one.

When should I use AActor::GetTransform() vs. AActor::GetActorTransform()?

I’m generally looking to convert between world and relative spaces.

I found someone else asked basically this same question on another forum, and they dug a ltitle deeper than I did. Unfortunately they didn’t get an answer.

GetTransform is declared as a BlueprintCallable UFUNCTION. This is the only one of the two which can be called in blueprints.

GetActorTransform is not, and all the function calls are inlined. I would use this call on the C++ side.

3 Likes

Thanks, that makes sense.