UInstancedStaticMeshComponent::UpdateInstances

Lightweight interface to add, remove and update instances.

Choose your operating system:

Windows

macOS

Linux

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 bool UpdateInstances
(
    const TArray< int32 > & UpdateInstanceIds,
    const TArray< FTransform > & UpdateInstanceTransforms,
    const TArray< FTransform > & UpdateInstancePreviousTransforms,
    int32 NumCustomFloats,
    const TArray< float > & CustomFloatData
)

Remarks

Lightweight interface to add, remove and update instances.

Returns

True on success

Parameters

Parameter

Description

AddInstanceTransforms

The transforms of the new instances to add.

RemoveInstanceIds

The ids of the instances to remove.

UpdateInstanceIds

The ids of the new instances to update.

UpdateInstanceTransforms

The transforms of the new instances to update.

UpdateInstancePreviousTransforms

The transforms of the new instances to update.