![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ComponentInstanceDataCache.h>
Public Member Functions | |
| FComponentInstanceDataCache ()=default | |
| ENGINE_API | FComponentInstanceDataCache (const AActor *InActor) |
| ~FComponentInstanceDataCache ()=default | |
| FComponentInstanceDataCache (const FComponentInstanceDataCache &)=delete | |
| FComponentInstanceDataCache & | operator= (const FComponentInstanceDataCache &)=delete |
| FComponentInstanceDataCache (FComponentInstanceDataCache &&)=default | |
| FComponentInstanceDataCache & | operator= (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) |
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.
|
default |
| FComponentInstanceDataCache::FComponentInstanceDataCache | ( | const AActor * | InActor | ) |
Constructor that also populates cache from Actor
|
default |
|
delete |
Non-copyable
|
default |
Movable
| void FComponentInstanceDataCache::AddReferencedObjects | ( | FReferenceCollector & | Collector | ) |
| void FComponentInstanceDataCache::ApplyToActor | ( | AActor * | Actor, |
| const ECacheApplyPhase | CacheApplyPhase | ||
| ) | const |
Iterates over an Actor's components and applies the stored component instance data to each
| void FComponentInstanceDataCache::FindAndReplaceInstances | ( | const TMap< UObject *, UObject * > & | OldToNewInstanceMap | ) |
Iterates over components and replaces any object references with the reinstanced information
|
static |
|
inline |
|
delete |
|
default |
Serialize Instance data for persistence or transmission.