Have been trying to get a pointer to a UPhysicsHandleComponent from the owning Actor using: UPhysicsHandleComponent* PhysicsHandler = GetOwner()->FindComponentByClass();
which works.
What is the real difference between using the FindComponentByClass<>() function and GetComponentByClass()? Can both be used in similar use cases? If not what are the use cases?
Pure speculation (I never worked on a super large project like the UE):
Some developers tend to type in “Find…” for such a function, others “Get…”. This might be a convenient way to just serve both types without some strict company guidelines (or it is for the end user), so that both find the right thing.
It won’t make any difference performancewise which one is used (probably), as a compiler will just optimize the alias to the original.