Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UInstancedStaticMeshComponent
- UInstancedStaticMeshComponent::PreAllocateInstancesMemory()
- UHierarchicalInstancedStaticMeshComponent::PreAllocateInstancesMemory()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/InstancedStaticMeshComponent.h |
| Include | #include "Components/InstancedStaticMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/InstancedStaticMesh.cpp |
virtual void PreAllocateInstancesMemory
(
int32 AddedInstanceCount
)
Remarks
Preallocated memory to include the new added instances count, to prevent reallloc during the add operation.