FComponentInstanceDataCache

Cache for component instance data.

Windows
MacOS
Linux

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

References

Module

Engine

Header

Runtime/Engine/Public/ComponentInstanceDataCache.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback