AActor::GetComponentByClass

Syntax

UActorComponent * GetComponentByClass
(
    TSubclassOf < UActorComponent > ComponentClass
) const

Remarks

Searches components array and returns first encountered component of the specified class

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/Actor.h

Source

Runtime/Engine/Private/Actor.cpp