UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FComponentReference Struct Reference

#include <EngineTypes.h>

+ Inheritance diagram for FComponentReference:

Public Member Functions

 FComponentReference ()
 
ENGINE_API class UActorComponentGetComponent (AActor *OwningActor) const
 
bool operator== (const FComponentReference &Other) const
 
- Public Member Functions inherited from FBaseComponentReference
 FBaseComponentReference ()
 
ENGINE_API class UActorComponentExtractComponent (AActor *SearchActor) const
 
bool operator== (const FBaseComponentReference &Other) const
 

Public Attributes

TWeakObjectPtr< AActorOtherActor
 
- Public Attributes inherited from FBaseComponentReference
FName ComponentProperty
 
FString PathToComponent
 
TWeakObjectPtr< class UActorComponentOverrideComponent
 

Detailed Description

Struct that allows for different ways to reference a component using TObjectPtr. If just an Actor is specified, will return RootComponent of that Actor.

Constructor & Destructor Documentation

◆ FComponentReference()

FComponentReference::FComponentReference ( )
inline

Member Function Documentation

◆ GetComponent()

UActorComponent * FComponentReference::GetComponent ( AActor OwningActor) const

Get the actual component pointer from this reference

◆ operator==()

bool FComponentReference::operator== ( const FComponentReference Other) const
inline

FComponentReference == operator

Member Data Documentation

◆ OtherActor

TWeakObjectPtr<AActor> FComponentReference::OtherActor

Weak Pointer to a different Actor that owns the Component.
If this is not provided the reference refers to a component on this / the same actor.


The documentation for this struct was generated from the following files: