FComponentEditorUtils::FindMatchingComponent

Tries to find a match for ComponentInstance in the ComponentList.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Kismet2/ComponentEditorUtils.h

Include

#include "Kismet2/ComponentEditorUtils.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Kismet2/ComponentEditorUtils.cpp

Syntax

static UActorComponent * FindMatchingComponent
(
    UActorComponent * ComponentInstance,
    const TInlineComponentArray< UActorComponent * > & ComponentList
)

Remarks

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.

Returns

Valid Component pointer if match was found. nullptr otherwise.

Parameters

Parameter

Description

ComponentInstance

Component we are trying to match in the ComponentList

ComponentList

List containing possible matches

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