FComponentInstanceDataCache

Cache for component instance data.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/ComponentInstanceDataCache.h

Include

#include "ComponentInstanceDataCache.h"

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss