FComponentEditorUtils::MakeComponentReference

Make a [FComponentReference](API\Runtime\Engine\Engine\FComponentReference) from a component pointer.

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 FComponentReference MakeComponentReference
(
    const AActor * ExpectedComponentOwner,
    const UActorComponent * Component
)

Remarks

Make a FComponentReference from a component pointer.

Parameters

Parameter

Description

ExpectedComponentOwner

The expected component owner. Should be the same as OwningActor from FComponentReference::GetComponent().

Component

The component we would like to initialize the FComponentReference with.

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