UInstancedStaticMeshComponent::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/InstancedStaticMeshComponent.h

Include

#include "Components/InstancedStaticMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/InstancedStaticMesh.cpp

Syntax

virtual void PreAllocateInstancesMemory
(
    int32 AddedInstanceCount
)

Remarks

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