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

#include <ComponentInstanceDataCache.h>

+ Inheritance diagram for FActorComponentInstanceData:

Public Member Functions

ENGINE_API FActorComponentInstanceData ()
 
ENGINE_API FActorComponentInstanceData (const UActorComponent *SourceComponent)
 
ENGINE_API bool MatchesComponent (const UActorComponent *Component, const UObject *ComponentTemplate) const
 
virtual bool ContainsData () const
 
virtual ENGINE_API void ApplyToComponent (UActorComponent *Component, const ECacheApplyPhase CacheApplyPhase)
 
virtual void FindAndReplaceInstances (const TMap< UObject *, UObject * > &OldToNewInstanceMap)
 
virtual ENGINE_API void AddReferencedObjects (FReferenceCollector &Collector) override
 
const UClassGetComponentClass () const
 
const UObjectGetComponentTemplate () const
 
- Public Member Functions inherited from FInstanceCacheDataBase
virtual ENGINE_API ~FInstanceCacheDataBase ()
 
UObjectGetUniqueTransientPackage ()
 
ENGINE_API UObjectGetUniqueTransientObject (UClass *Class)
 
const TArray< FDataCacheDuplicatedObjectData > & GetDuplicatedObjects () const
 
const TArray< TObjectPtr< UObject > > & GetReferencedObjects () const
 
const TArray< uint8 > & GetSavedProperties () const
 

Protected Attributes

TObjectPtr< const UObjectSourceComponentTemplate
 
EComponentCreationMethod SourceComponentCreationMethod
 
int32 SourceComponentTypeSerializedIndex
 
- Protected Attributes inherited from FInstanceCacheDataBase
TArray< uint8SavedProperties
 

Detailed Description

Base class for component instance cached data of a particular type.

Constructor & Destructor Documentation

◆ FActorComponentInstanceData() [1/2]

FActorComponentInstanceData::FActorComponentInstanceData ( )

◆ FActorComponentInstanceData() [2/2]

FActorComponentInstanceData::FActorComponentInstanceData ( const UActorComponent SourceComponent)

Member Function Documentation

◆ AddReferencedObjects()

◆ ApplyToComponent()

◆ ContainsData()

◆ FindAndReplaceInstances()

virtual void FActorComponentInstanceData::FindAndReplaceInstances ( const TMap< UObject *, UObject * > &  OldToNewInstanceMap)
inlinevirtual

Replaces any references to old instances during Actor reinstancing

Reimplemented in FPrimitiveComponentInstanceData, and FSceneComponentInstanceData.

◆ GetComponentClass()

const UClass * FActorComponentInstanceData::GetComponentClass ( ) const
inline

◆ GetComponentTemplate()

const UObject * FActorComponentInstanceData::GetComponentTemplate ( ) const
inline

◆ MatchesComponent()

bool FActorComponentInstanceData::MatchesComponent ( const UActorComponent Component,
const UObject ComponentTemplate 
) const

Determines whether this component instance data matches the component

Member Data Documentation

◆ SourceComponentCreationMethod

EComponentCreationMethod FActorComponentInstanceData::SourceComponentCreationMethod
protected

The method that was used to create the source component

◆ SourceComponentTemplate

TObjectPtr<const UObject> FActorComponentInstanceData::SourceComponentTemplate
protected

The template used to create the source component

◆ SourceComponentTypeSerializedIndex

int32 FActorComponentInstanceData::SourceComponentTypeSerializedIndex
protected

The index of the source component in its owner's serialized array when filtered to just that component type


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