ACharacter::FindComponentByClass

Searches components array and returns first encountered component of the specified class, native version of GetComponentByClass

Windows
MacOS
Linux

Override Hierarchy

AActor::FindComponentByClass()

ACharacter::FindComponentByClass()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Character.h

Include

#include "GameFramework/Character.h"

Source

/Engine/Source/Runtime/Engine/Private/Character.cpp

Syntax

virtual UActorComponent * FindComponentByClass
(
    const TSubclassOf< UActorComponent > ComponentClass
) const

Remarks

Searches components array and returns first encountered component of the specified class, native version of GetComponentByClass

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss