UHierarchicalInstancedStaticMeshComponent::PreAllocateInstancesMemory

Preallocated memory to include the new added instances count, to prevent reallloc during the add operation.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UInstancedStaticMeshComponent::PreAllocateInstancesMemory()

UHierarchicalInstancedStaticMeshComponent::PreAllocateInstancesMemory()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/HierarchicalInstancedStaticMeshComponent.h

Include

#include "Components/HierarchicalInstancedStaticMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/HierarchicalInstancedStaticMesh.cpp

Syntax

virtual void PreAllocateInstancesMemory
(
    int32 AddedInstanceCount
)

Remarks

Preallocated memory to include the new added instances count, to prevent reallloc during the add operation.