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

#include <EngineTypes.h>

+ Inheritance diagram for FSoftComponentReference:

Public Member Functions

 FSoftComponentReference ()
 
ENGINE_API class UActorComponentGetComponent (AActor *OwningActor) const
 
bool operator== (const FSoftComponentReference &Other) const
 
ENGINE_API bool SerializeFromMismatchedTag (const FPropertyTag &Tag, FStructuredArchive::FSlot Slot)
 
- Public Member Functions inherited from FBaseComponentReference
 FBaseComponentReference ()
 
ENGINE_API class UActorComponentExtractComponent (AActor *SearchActor) const
 
bool operator== (const FBaseComponentReference &Other) const
 

Public Attributes

TSoftObjectPtr< 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 TSoftObjectPtr. If just an Actor is specified, will return RootComponent of that Actor.

Constructor & Destructor Documentation

◆ FSoftComponentReference()

FSoftComponentReference::FSoftComponentReference ( )
inline

Member Function Documentation

◆ GetComponent()

UActorComponent * FSoftComponentReference::GetComponent ( AActor OwningActor) const

Get the actual component pointer from this reference

◆ operator==()

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

◆ SerializeFromMismatchedTag()

bool FSoftComponentReference::SerializeFromMismatchedTag ( const FPropertyTag Tag,
FStructuredArchive::FSlot  Slot 
)

Member Data Documentation

◆ OtherActor

TSoftObjectPtr<AActor> FSoftComponentReference::OtherActor

Soft 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: