Get actor from component in C++?

GetOwner()->GetRootComponent()->AttachParent->GetOwner()

  • GetOwner() → Get the actor that own the component
  • GetRootComponent() → Get the USceneComponent* of the actor
  • AttachParent → Get the parent, but it’s a USceneComponent*
  • GetOwner() → Get the owner of the parent
4 Likes