Navigation
API > API/Runtime > API/Runtime/Engine
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.
| Name | FComponentInstanceDataCache |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/ComponentInstanceDataCache.h |
| Include Path | #include "ComponentInstanceDataCache.h" |
Syntax
class FComponentInstanceDataCache
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| ComponentInstanceDataCache.h | |||
FComponentInstanceDataCache
(
const AActor* InActor |
Constructor that also populates cache from Actor | ComponentInstanceDataCache.h | |
| Non-copyable | ComponentInstanceDataCache.h | ||
| Movable | ComponentInstanceDataCache.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FComponentInstanceDataCache() |
ComponentInstanceDataCache.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ComponentsInstanceData | TArray< TStructOnScope< FActorComponentInstanceData > > | Map of component instance data struct (template -> instance data) | ComponentInstanceDataCache.h | |
| InstanceComponentTransformToRootMap | TMap< TObjectPtr< USceneComponent >, FTransform > | Map of the actor instanced scene component to their transform relative to the root. | ComponentInstanceDataCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddReferencedObjects
(
FReferenceCollector& Collector |
ComponentInstanceDataCache.h | ||
void ApplyToActor
(
AActor* Actor, |
Iterates over an Actor's components and applies the stored component instance data to each | ComponentInstanceDataCache.h | |
| Iterates over components and replaces any object references with the reinstanced information | ComponentInstanceDataCache.h | ||
bool HasInstanceData() |
ComponentInstanceDataCache.h | ||
void Serialize
(
FArchive& Ar |
Serialize Instance data for persistence or transmission. | ComponentInstanceDataCache.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void GetComponentHierarchy
(
const AActor* Actor, |
ComponentInstanceDataCache.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| ComponentInstanceDataCache.h | |||
| ComponentInstanceDataCache.h |