Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FComponentEditorUtils
Description
Tries to find a match for ComponentInstance in the ComponentList. First by name and then if multiple Components have a matching name try to match the SceneComponent hierarchy to find the best match.
| Name | FindMatchingComponent |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Kismet2/ComponentEditorUtils.h |
| Include Path | #include "Kismet2/ComponentEditorUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Kismet2/ComponentEditorUtils.cpp |
static UActorComponent * FindMatchingComponent
(
const UActorComponent * ComponentInstance,
const TInlineComponentArray < UActorComponent * > & ComponentList
)
Valid Component pointer if match was found. nullptr otherwise.
Parameters
| Name | Remarks |
|---|---|
| ComponentInstance | Component we are trying to match in the ComponentList |
| ComponentList | List containing possible matches |