UInstancedStaticMeshComponent::BatchUpdateInstancesTransforms

Update the transform for an array of instances.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UInstancedStaticMeshComponent::BatchUpdateInstancesTransforms()

UHierarchicalInstancedStaticMeshComponent::BatchUpdateInstancesTransforms()

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 BatchUpdateInstancesTransforms
(
    int32 StartInstanceIndex,
    const TArray< FTransform > & NewInstancesTransforms,
    bool bWorldSpace,
    bool bMarkRenderStateDirty,
    bool bTeleport
)

Remarks

Update the transform for an array of instances.

Returns

True on success.

Parameters

Parameter

Description

StartInstanceIndex

The starting index of the instances to update

NewInstancesTransforms

The new transforms

bWorldSpace

If true, the new transforms are interpreted as a World Space transform, otherwise it is interpreted as Local Space

bMarkRenderStateDirty

If true, the change should be visible immediately. If you are updating many instances you should only set this to true for the last instance.

bTeleport

Whether or not the instances physics should be moved normally, or teleported (moved instantly, ignoring velocity).