FComponentInstanceDataCache

Syntax

class FComponentInstanceDataCache

Remarks

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 .

Constructors

Name Description

Public function

FComponentInstanceDataCache()

Public function

FComponentInstanceDataCache

(
    const AActor * InActor
)

Constructor that also populates cache from Actor

Public function

FComponentInstanceDataCache

(
    const FComponentInstanceDataCache &
)

Non-copyable

Public function

FComponentInstanceDataCache

Movable

Destructors

Functions

Name Description

Public function

void

 

AddReferencedObjects

(
    FReferenceCollector & Collector
)

Public function Const

void

 

ApplyToActor

(
    AActor * Actor,
    const ECacheApplyPhase CacheApplyPh...
)

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

Public function

void

 

FindAndReplaceInstances

(
    const TMap < UObject *, UObject ...
)

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

Public function Const

bool

 

HasInstanceData()

Public function

void

 

Serialize

(
    FArchive & Ar
)

Serialize Instance data for persistence or transmission.

Operators

Name Description

Public function

FComponentIn ...

 

operator=

(
    const FComponentInstanceDataCache &
)

Public function

FComponentIn ...

 

operator=

References

Module

Engine

Header

Runtime/Engine/Public/ComponentInstanceDataCache.h