Difference Between GetComponentByClass() and FindComponentByClass()?

Hello,

I’m trying to figure out what is the difference between GetComponentByClass() (doc) and FindComponentByClass(doc). I’m really confused by the Unreal Engine documentation of these two methods. Their documentation look very similar, yet FindComponentByClass() can be used as a template, but GetComponentByClass() cannot. At least, not when I tried.

It would be very appreciated if someone could lighten me up on this.

Thank you !

GetComponentByClass is exposed to blueprint and just calls FindComponentByClass.

1 Like

Oh, I see. Thanks !

But, how do you know that GetComponentByClass is exposed to blueprint ? Nothing tells me in the documentation that it is.

I looked at the source code.

Ahhhh, right !

I guess I’ll have to look at it more often.

Thank you !

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms