UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FComponentInstanceDataCache Class Reference

#include <ComponentInstanceDataCache.h>

Public Member Functions

 FComponentInstanceDataCache ()=default
 
ENGINE_API FComponentInstanceDataCache (const AActor *InActor)
 
 ~FComponentInstanceDataCache ()=default
 
 FComponentInstanceDataCache (const FComponentInstanceDataCache &)=delete
 
FComponentInstanceDataCacheoperator= (const FComponentInstanceDataCache &)=delete
 
 FComponentInstanceDataCache (FComponentInstanceDataCache &&)=default
 
FComponentInstanceDataCacheoperator= (FComponentInstanceDataCache &&)=default
 
ENGINE_API void Serialize (FArchive &Ar)
 
ENGINE_API void ApplyToActor (AActor *Actor, const ECacheApplyPhase CacheApplyPhase) const
 
ENGINE_API void FindAndReplaceInstances (const TMap< UObject *, UObject * > &OldToNewInstanceMap)
 
bool HasInstanceData () const
 
ENGINE_API void AddReferencedObjects (FReferenceCollector &Collector)
 

Static Public Member Functions

static ENGINE_API void GetComponentHierarchy (const AActor *Actor, TArray< UActorComponent *, TInlineAllocator< NumInlinedActorComponents > > &OutComponentHierarchy)
 

Detailed Description

Cache for component instance data. Note, does not collect references for GC, so is not safe to GC if the cache is only reference to a UObject.

Constructor & Destructor Documentation

◆ FComponentInstanceDataCache() [1/4]

FComponentInstanceDataCache::FComponentInstanceDataCache ( )
default

◆ FComponentInstanceDataCache() [2/4]

FComponentInstanceDataCache::FComponentInstanceDataCache ( const AActor InActor)

Constructor that also populates cache from Actor

◆ ~FComponentInstanceDataCache()

FComponentInstanceDataCache::~FComponentInstanceDataCache ( )
default

◆ FComponentInstanceDataCache() [3/4]

FComponentInstanceDataCache::FComponentInstanceDataCache ( const FComponentInstanceDataCache )
delete

Non-copyable

◆ FComponentInstanceDataCache() [4/4]

FComponentInstanceDataCache::FComponentInstanceDataCache ( FComponentInstanceDataCache &&  )
default

Movable

Member Function Documentation

◆ AddReferencedObjects()

void FComponentInstanceDataCache::AddReferencedObjects ( FReferenceCollector Collector)

◆ ApplyToActor()

void FComponentInstanceDataCache::ApplyToActor ( AActor Actor,
const ECacheApplyPhase  CacheApplyPhase 
) const

Iterates over an Actor's components and applies the stored component instance data to each

◆ FindAndReplaceInstances()

void FComponentInstanceDataCache::FindAndReplaceInstances ( const TMap< UObject *, UObject * > &  OldToNewInstanceMap)

Iterates over components and replaces any object references with the reinstanced information

◆ GetComponentHierarchy()

void FComponentInstanceDataCache::GetComponentHierarchy ( const AActor Actor,
TArray< UActorComponent *, TInlineAllocator< NumInlinedActorComponents > > &  OutComponentHierarchy 
)
static

◆ HasInstanceData()

bool FComponentInstanceDataCache::HasInstanceData ( ) const
inline

◆ operator=() [1/2]

FComponentInstanceDataCache & FComponentInstanceDataCache::operator= ( const FComponentInstanceDataCache )
delete

◆ operator=() [2/2]

FComponentInstanceDataCache & FComponentInstanceDataCache::operator= ( FComponentInstanceDataCache &&  )
default

◆ Serialize()

void FComponentInstanceDataCache::Serialize ( FArchive Ar)

Serialize Instance data for persistence or transmission.


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