Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UInstancedStaticMeshComponent
- UInstancedStaticMeshComponent::BatchUpdateInstancesTransform()
- UHierarchicalInstancedStaticMeshComponent::BatchUpdateInstancesTransform()
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 |
UFUNCTION (BlueprintCallable, Category="Components|InstancedStaticMesh")
virtual bool BatchUpdateInstancesTransform
(
int32 StartInstanceIndex,
int32 NumInstances,
const FTransform & NewInstancesTransform,
bool bWorldSpace,
bool bMarkRenderStateDirty,
bool bTeleport
)
Remarks
Update the transform for a number of instances. True on success.
Parameters
| Name | Description |
|---|---|
| StartInstanceIndex | The starting index of the instances to update |
| NumInstances | The number of instances to update |
| NewInstancesTransform | The new transform |
| bWorldSpace | If true, the new transform is 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). |