![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <EngineTypes.h>
Inheritance diagram for FComponentReference:Public Member Functions | |
| FComponentReference () | |
| ENGINE_API class UActorComponent * | GetComponent (AActor *OwningActor) const |
| bool | operator== (const FComponentReference &Other) const |
Public Member Functions inherited from FBaseComponentReference | |
| FBaseComponentReference () | |
| ENGINE_API class UActorComponent * | ExtractComponent (AActor *SearchActor) const |
| bool | operator== (const FBaseComponentReference &Other) const |
Public Attributes | |
| TWeakObjectPtr< AActor > | OtherActor |
Public Attributes inherited from FBaseComponentReference | |
| FName | ComponentProperty |
| FString | PathToComponent |
| TWeakObjectPtr< class UActorComponent > | OverrideComponent |
Struct that allows for different ways to reference a component using TObjectPtr. If just an Actor is specified, will return RootComponent of that Actor.
|
inline |
| UActorComponent * FComponentReference::GetComponent | ( | AActor * | OwningActor | ) | const |
Get the actual component pointer from this reference
|
inline |
FComponentReference == operator
| 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.