AActor::GetComponentsByClass

Syntax

TArray < UActorComponent * > GetComponentsByClass
(
    TSubclassOf < UActorComponent > ComponentClass
) const

Remarks

Gets all the components that inherit from the given class. Currently returns an array of UActorComponent which must be cast to the correct type.

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/Actor.h

Source

Runtime/Engine/Private/Actor.cpp