Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FInstanceDataManager
Description
Compute the instance order used to build the instance hierarchy (spatial hashes) and return the reordering needed for this. This should be used by the data source (i.e., UComponent etc) to reorder the source instance buffers. Returns a reordering table where each index stores the old index for the given new index.
| Name | Optimize |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/InstanceData/InstanceDataManager.h |
| Include Path | #include "InstanceData/InstanceDataManager.h" |
| Source | /Engine/Source/Runtime/Engine/Private/InstanceData/InstanceDataManager.cpp |
TArray < int32 > Optimize
(
FInstanceDataManagerSourceDataDesc && ComponentData,
bool bShouldRetainIdMap
)