What is the difference b/w and use cases of GetComponentByClass and FindComponentByClass?

VAL_I_S
Wed, 05 Oct 2016 09:19:53 +0000
Community & Industry Discussion

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?

5 posts - 5 participants